Beginning iOS 9 Programming with Swift (Swift2.0)

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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 太长了,还是转载吧...今天在看博客的时候,无意中发现了@Trinea在GitHub上的一个项目Android开源...
    庞哈哈哈12138阅读 20,303评论 3 283
  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,617评论 2 45
  • 风好缠绵且多情 融化一座冰山 吹醒的胡春水 我在林间游荡 渴望化为晨露 这个潮湿的早晨 这个早晨中的你 多想如你所...
    Julien陆主欢阅读 662评论 21 11
  • 很多时候我们会变成那个自己讨厌的人之所以会这样是不会改变是害怕改变是自己内心的堕落是自己的没有一颗坚坚持的心我想要...
    王自在阅读 138评论 0 2
  • 喜欢那些摘录和写的小语,这一句句的小语支撑了我整个学生时代。每每看到那一句句优美的词句都会忍不住要把它写到本子里。...
    妖孽只在夜里哭泣阅读 463评论 0 0