- Beginning iOS 9 Programming with
- Beginning iOS 8 Programming with
- Beginning iOS 8 Programming with
- Beginning iOS 8 Programming with
- Beginning iOS 8 Programming with
- Beginning iOS 8 Programming with
- Beginning iOS 8 Programming with
- Beginning iOS 8 Programming with
- Beginning iOS 8 Programming with
- 开始用Swift开发iOS 10 - 1 前言和目录
1.control+command+"Space" 快速呼出表情筐
2.可以在Playground直接写UI代码:

3.按住control在一个视图上自己拉到自己,可以添加aspect宽高比约束
4.Size Class对应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』. 导航栏
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.状态栏风格:

UIApplication.sharedApplication().statusBarStyle = .LightContent
-
iOS8之后出来的自动设置cell高度的技术,三步:
tableView.estimatedRowHeight = 36.0
tableView.rowHeight = UITableViewAutomaticDimension
把label行数设置成0 -
exit
先在controller里写@IBAction func close(segue:UIStoryboardSegue) 然后在链接按钮到exit!

网友评论