为什么文本从UITextField的底部切割? [英] Why Text is cutting from bottom in UITextField?
问题描述
我在我的整个应用程序的文本字段和标签中使用自定义字体。我的字体名称是digital-7.ttf。现在的问题是,我的标签中的文本是好的,但在UITextFields它是从底部切割文本。当文本字段正在编辑,然后文本是好的,但编辑完成后,再次削减文本。像这样
我正在设置它的字体样式
[txtFld setFont:[UIFont fontWithName:@digital-7size:25.0]];
和字体已经添加到info.plist中请帮助我
这个问题是在Xcode 3.2.5中。在早期版本中,相同的代码工作良好:)
I am using a custom font in my text fields and labels in my whole application. My font name is "digital-7.ttf". now the problem is that text in my labels is good but in the UITextFields it is cutting text from bottom. when textfield is editing then text is good but when editing is done then it cuts the text again. like this
in this way i am setting its font style
[txtFld setFont:[UIFont fontWithName:@"digital-7" size:25.0]];
and font has been added in info.plist
Please help me
this problem is in Xcode 3.2.5. In earlier versions same code works good. :)
这篇关于为什么文本从UITextField的底部切割?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!