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