1

i've got one UITextfield:

    textField = [[UITextField alloc] initWithFrame:CGRectMake(20, 10, 200, 33)];
    [textField setFont:[UIFont fontWithName:@"Helvetica Neue Regular" size:14]] ;
    [textField setDelegate:self];

Below you can see textfield on iOS 6.0 and iOS 5.1. enter image description here

enter image description here

Why on 5.1 text it's bigger? In setFont size is 14.

4

1 に答える 1

1

私が理解しているように、シミュレーターからスクリーンショットを作成します。iPhone 4 と iPhone 5 では画面の解像度が異なりますが、シミュレーター iPhone 4 と iPhone 5 の「ウィンドウ」のサイズは同じであるため、5.1 のテキストは常に 6.0 よりも大きくなります。

于 2012-09-24T12:31:16.243 に答える