Ada*_*dam 76
你需要使用类型转换.这段代码会这样做:
    if let theLabel = self.view.viewWithTag(123) as? UILabel {
        theLabel.text = "some text"
    }
viewWithTag:返回一个 UIView,您需要将其类型转换为UILabel.
var yourLabel : UILabel = yourView.viewWithTag(yourTag) as! UILabel;
| 归档时间: | 
 | 
| 查看次数: | 37191 次 | 
| 最近记录: |