amo*_*mok 10 iphone objective-c iphone-sdk-3.0
- (IBAction)onClick1:(id)sender {
// Make sure it's a UIButton
if (![sender isKindOfClass:[UIButton class]])
return;
NSString *title = [(UIButton *)sender currentTitle];
}
Run Code Online (Sandbox Code Playgroud)
我理解如何获取标题和其他当前值,但我不知道如何获取标记属性的值.
| 归档时间: |
|
| 查看次数: |
24831 次 |
| 最近记录: |