@IBOutlet weak var image: UIImageView!
var imageName:String?
override func viewDidLoad() {
super.viewDidLoad()
if imageName != nil{
image.image = UIImage(named:imageName!)
}
}
var imageName:String?
override func viewDidLoad() {
super.viewDidLoad()
if imageName != nil{
image.image = UIImage(named:imageName!)
}
}
2017-11-20
最新回答 / CrazyScholar
http://blog.csdn.net/shenjie_xsj/article/details/79033861这里有对Swift4中时间和日期相关处理的说明
2017-11-03
"\(name.text!), \(genderText),\(age!)岁,身高\(height.text!), \(hasRoomText)";要这样写,需加!获取text文本信息。
2017-10-24
let cell = tableView.dequeueReusableCellWithIdentifier("todoCell")!
2017-08-28
let cell = tableView.dequeueReusableCellWithIdentifier("todoCell") as!
2017-08-28
SWIFT 3:
self.present(controller, animated: true, completion: nil)
self.present(controller, animated: true, completion: nil)
2017-08-05