0

我想在每次使用变量命中 UIButton 时更新它的 TITLE。

4

1 回答 1

1

看起来这可能涵盖了您在iPhone Tap Counter之后的情况

anotherLabel 将是您的 UIButton 的名称

static int count;
count++;
NSString *countString = [NSString stringWithFormat:@"%d", count];
[anotherLabel setText: countString];
于 2013-02-13T02:25:55.153 回答