0

他のラベルを下に配置するために、ラベルの位置を決定しようとしています。

特定のラベルでデータを出力しようとすると0.000、ログに出力されます。

なぜこれが起こっているのですか?

    ...
    postTextLabel.text  = postText;
    postTextLabel.frame = CGRectMake(postTextLabel.frame.origin.x,
                                     postThumbView.frame.origin.y + postThumbView.frame.size.height,
                                     postTextLabel.frame.size.width,
                                     postTextLabel.frame.size.height);
    [postTextLabel resizeToFit];

    postAuthorNameLabel.text = postAuthorName;
    postTimestampLabel.text  = postTimestamp;

    NSLog(@"%f", postTimestampLabel.frame.origin.y);
4

0 に答える 0