美文网首页
Beginning iOS 9 Programming with

Beginning iOS 9 Programming with

作者: iOS开发章鱼哥 | 来源:发表于2015-11-03 11:07 被阅读1171次

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

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

Paste_Image.png

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

4.Size Class对应iPhone

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

      本文链接:https://www.haomeiwen.com/subject/qbvicttx.html