1.control+command+"Space" 快速呼出表情筐
2.可以在Playground直接寫UI代碼:
3.按住control在一個(gè)視圖上自己拉到自己,可以添加aspect寬高比約束
4.Size Class對(duì)應(yīng)iPhone
5.“There are a number of tools for developers to prototype their apps. POP app, Proto.io, Flinto, Principle and InvisionApp are some of the examples. ”
https://popapp.in/
https://proto.io/
https://www.flinto.com/
http://www.invisionapp.com/
http://principleformac.com/
6.“tableView.deselectRowAtIndexPath(indexPath, animated: false)”
『7』. 導(dǎo)航欄
UINavigationBar.appearance().barTintColor = UIColor(red: 242.0/255.0, green:
116.0/255.0, blue: 119.0/255.0, alpha: 1.0)
if let barFont = UIFont(name: "Avenir-Light", size: 24.0) {
UINavigationBar.appearance().titleTextAttributes =
[NSForegroundColorAttributeName:UIColor.whiteColor(),
NSFontAttributeName:barFont]
}
UINavigationBar.appearance().tintColor = UIColor.whiteColor()
8.狀態(tài)欄風(fēng)格:
UIApplication.sharedApplication().statusBarStyle = .LightContent
iOS8之后出來的自動(dòng)設(shè)置cell高度的技術(shù)个绍,三步:
tableView.estimatedRowHeight = 36.0
tableView.rowHeight = UITableViewAutomaticDimension
把label行數(shù)設(shè)置成0-
exit
先在controller里寫@IBAction func close(segue:UIStoryboardSegue) 然后在鏈接按鈕到exit!