【发布时间】:2016-07-29 09:42:48
【问题描述】:
迅速
!tempPlays.values.contains(1)
在目标 C 中
(![[tempPlays objectForKey:@"1"] integerValue]) // tempPlays is NSDictionary
这也有帮助吗?
在 SWIFT 中
button0.setTitle(plays[0] == 0 ? "O": (plays[0] == 1 ? "X" : button0.titleLabel!.text!), forState: UIControlState.Normal)`
在目标 C 中
[_btn0 setTitle:([[playDictionary objectForKey:@"0"]integerValue] == 0 ? @"O" : ([[playDictionary objectForKey:@"0"]integerValue] == 1 ? @"X" : _btn0.titleLabel.text)) forState:UIControlStateNormal];`
iOS 新手..
【问题讨论】:
-
请把问题问清楚
标签: ios objective-c swift