2015年5月14日

【Swift】UIPresentationController的使用方法

摘要: UIPresentationController是ios8.0的新特性哦,使用需要注意先上一个效果图第一步: 连线选择segue类型为,present Modally第二步:需要演示的控制器,自定义为HJCPopViewController第三步:新建一个类HJCPopoverPresentatio... 阅读全文

posted @ 2015-05-14 20:18 歌飘渺 阅读(1211) 评论(0) 推荐(0)

【Swift】UIPresentationController的使用方法

摘要: UIPresentationController是ios8.0的新特性哦,使用需要注意先上一个效果图第一步: 连线选择segue类型为,present Modally第二步:需要演示的控制器,自定义为HJCPopViewController第三步:新建一个类HJCPopoverPresentatio... 阅读全文

posted @ 2015-05-14 20:08 歌飘渺 阅读(209) 评论(0) 推荐(0)

【Swift】swift中懒加载的写法

摘要: swift中懒加载的写法,直接上例子 (懒加载一个遮罩视图)lazy var dummyView: UIView = { let v = UIView() v.backgroundColor = UIColor(white: 0.0, alpha: 0.2) ... 阅读全文

posted @ 2015-05-14 19:34 歌飘渺 阅读(257) 评论(0) 推荐(0)

【Swift】swift定义全局变量

摘要: swift定义全局变量非常简单哈,只要在类class上面直接定义,就是全局变量了当需要在类里面定义一个类函数访问的变量的时候,直接在var或者let 前面加一个 static 阅读全文

posted @ 2015-05-14 19:30 歌飘渺 阅读(3213) 评论(0) 推荐(0)

导航