uifont
How can I calculate correct widths for UISegmentedControl segments?
I\'m trying to use a UISegmentedControl but having trouble calculating the width of the segments.The control makes the segments all the same width which doesn\'t work for some titles, like this one:[详细]
2023-03-20 08:53 分类:问答Fonts look different on different iOS versions
I am building an application that will run 开发者_如何学Pythonon iOS versions 4.0 and above. At some point i use UIFont for some labels in the following way:[详细]
2023-03-19 23:52 分类:问答Detect whether a font is bold/italic on iOS?
Given a UIFont or a CTFo开发者_开发问答nt, how can I tell whether the font is bold/italic?iOS7 Font Descriptor[详细]
2023-03-19 07:28 分类:问答Custom Font in ios not working
I want to use HelveticaNeue-UltraLight in my ios application. I\'m adding the font file as a resource to my project and adding the \"Fonts provided by application\" key in the plist file. The file nam[详细]
2023-03-18 04:34 分类:问答iPhone - Create underlined UIFont?
I already have a font object, I want to add underlined attribute to it without having to specify a font name.[详细]
2023-03-16 18:48 分类:问答How to get the font-size or a bold-version of UIFont instance
How to get the font-size of a UIFont instance? Or, if someone can implement this method for UIFont? -开发者_开发技巧 (UIFont *)boldFont;[详细]
2023-03-16 10:40 分类:问答Calculating UIFont size based on pre calculated ascender
I am using a custom font for my iOS application. My view needs to choose a different point size for the font depending on the size of the view. If I have a predetermined[详细]
2023-03-14 11:11 分类:问答Self installed fonts have wrong line height in UILabel
I have installed two custom TTF fonts in my iPhone app (Cardo and New Athena Unicode). These are used in a multi-line UILabel, but for some reason the line height seems messed up: the lines have a lot[详细]
2023-03-13 13:53 分类:问答My custom font is not displaying
I\'m trying to use a custom font in my iPhone app. I created a key for it in my info.plist as follows:[详细]
2023-03-11 00:42 分类:问答Can I set the UIFont height?
Can I set the UIFont height as well as the line spacing? I googled this, it seems no way to set height for the IOS built-in font. One possible way is to use c开发者_运维知识库ustomized font. This seem[详细]
2023-03-10 01:48 分类:问答