Beginning iOS 9 Programming with Swift (Swift2.0)

1.control+command+"Space" 快速呼出表情筐

2.可以在Playground直接写UI代码:

Beginning iOS 9 Programming with Swift (Swift2.0)_第1张图片
Paste_Image.png

3.按住control在一个视图上自己拉到自己,可以添加aspect宽高比约束

4.Size Class对应iPhone

Beginning iOS 9 Programming with Swift (Swift2.0)_第2张图片
Paste_Image.png

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.状态栏风格:

Paste_Image.png
    UIApplication.sharedApplication().statusBarStyle = .LightContent
  1. iOS8之后出来的自动设置cell高度的技术,三步:
    tableView.estimatedRowHeight = 36.0
    tableView.rowHeight = UITableViewAutomaticDimension
    把label行数设置成0

  2. exit

     先在controller里写@IBAction func close(segue:UIStoryboardSegue)     然后在链接按钮到exit!
    
Paste_Image.png

你可能感兴趣的:(Beginning iOS 9 Programming with Swift (Swift2.0))