您的位置:首页 > 产品设计 > UI/UE

Let the label display variable values on screen

2013-02-27 15:39 288 查看
To do that, we need to accomplish two things:

1 Create a reference to the label so we can send it messages.

2 Give the label new text to display

@property (nonatomic,
strong) IBOutlet
UILabel *targetLabel;

- (void)updateLables
{

self.targetLabel.text = [NSString
stringWithFormat:@"%d",
targetValue];
}

- (void)viewDidLoad
{

[super
viewDidLoad];

// Do any additional setup after loading the view, typically from a nib.

[self
startNewRound];

[self
updateLables];
}

pp84
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: