我想要实现一个标签为text =0,两个按钮为文本'+‘和'-’的桌布。
知道怎么换uitablecell的标签吗。
提前谢谢。
发布于 2011-05-23 10:16:57
尝试使用setText:方法的UILabel
[urLabel setText:newText];
- (IBAction)plusButtonPressed
{
int value = [urLabel.text intValue];
value++;
[urLabel setText:[NSString stringWithFormat:@"%d",value]];
}发布于 2011-05-23 10:18:47
查看文档的此页。特别是清单5-3。基本思想是,所有自定义子视图都应该添加到表单元格的contentView中。
https://stackoverflow.com/questions/6095807
复制相似问题