【发布时间】:2010-11-04 20:27:44
【问题描述】:
UILabel *scoreLabel = [ [UILabel alloc ] initWithFrame:CGRectMake((self.bounds.size.width / 2), 0.0, 150.0, 43.0) ];
scoreLabel.textAlignment = UITextAlignmentCenter;
scoreLabel.textColor = [UIColor whiteColor];
scoreLabel.backgroundColor = [UIColor blackColor];
scoreLabel.font = [UIFont fontWithName:@"Arial Rounded MT Bold" size:(36.0)];
[self addSubview:scoreLabel];
scoreLabel.text = [NSString stringWithFormat: @"%d", score];
谁能给我一个例子,告诉我如何操作 iphone 的UILabel,每 1 分钟更改 100 个不同的单词?显然,您不必输入 100 个不同的单词,但不断添加单词的代码过程是什么,而不是每 1 分钟更改一次。感谢您的帮助。
【问题讨论】:
标签: iphone xcode ios-simulator