English 中文(简体)
页: 1 基金会:
原标题:iOS Foundation: system font size

我愿知道,SOS表格中的系统自成一体。 浏览量是always, 文本是一样的? 这正被贬为风格?

例如,在INS Carlo(@“%f”)时,[Font systemFontSize];。 页: 1 这是否总是一样?

And what s more: How can i change font size without changing the font-family (assuming that i have my own fonts in my plist).

我尝试:

cell.textLabel.font = [UIFont fontWithName:@"Sansation-Light" size:12.0];

但是,荷兰家庭联盟总是想要我自己的名字。 如何避免这种情况,让我所有的屏幕和只改变规模。

最佳回答

缩略语

+ (CGFloat)labelFontSize;//Returns the standard font size used for labels.
+ (CGFloat)buttonFontSize;//Returns the standard font size used for buttons.
+ (CGFloat)smallSystemFontSize;//Returns the size of the standard small system font.
+ (CGFloat)systemFontSize;//Returns the size of the standard system font.

并且,如果家庭不这样,你可以改变体力:

cell.textLabel.font = [UIFont systemFontOfSize:14];
问题回答

体积并不总是相同。 http://useyourloaf.com/blog/supporting-dynamic-type/"rel=“nofollow noreferer”Dynamic打字/code>。 用户可以在系统环境中确定自己喜欢的字体大小。 这是人们现在希望获得和确定自己体积的建议途径。

在界面构造中,你可以选择如<条码>/条码>或<条码>、第1条<>条/代码”等内容。 将根据用户系统环境调整实际规模。 * E/CN.6/2009/1。 文本:。 See this post, for more details about do this in Observ 10 andRUS 3.

另见《公约》第3条。

Just to add to the above answer. The above methods are members of UIFont class. So to get the default button font size...

float defaultFontSize = [UIFont buttonFontSize]; 




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签