代码改变世界

contentMode

2017-12-26 10:11 by dengchaojie_learner, 133 阅读, 0 推荐, 收藏, 编辑
摘要:scaleAspectFill:The option to scale the content to fill the size of the view. Some portion of the content may be clipped to fill the view’s bounds. 保持 阅读全文

iOS开发--本地通知与远程通知

2017-12-24 11:03 by dengchaojie_learner, 146 阅读, 0 推荐, 收藏, 编辑
摘要:http://www.jianshu.com/p/064207461bb6 https://www.cnblogs.com/onlyMyRailGun/p/5162313.html 通知的注意点 1、App在前台运行的时候,通知不会展示出来2、点击通知,默认会自动打开推送通知的App3、不管App是 阅读全文

2017年终总结

2017-12-24 09:56 by dengchaojie_learner, 116 阅读, 0 推荐, 收藏, 编辑
摘要: 阅读全文

swift开发笔记21 - Pinterest

2017-12-21 15:29 by dengchaojie_learner, 401 阅读, 0 推荐, 收藏, 编辑
摘要:let frame = CGRect(x: xOffset[column], y: yOffset[column], width: columnWidth, height: height) let insetFrame = frame.insetBy(dx: cellPadding, dy: cel 阅读全文

swift selector写法

2017-12-19 17:45 by dengchaojie_learner, 211 阅读, 0 推荐, 收藏, 编辑
摘要:#selector(xiuGaiNote(_:)) @objc func xiuGaiNote(_ note:Notification) -> Void { let dic = note.userInfo indexPath = dic!["indexPath"] as! IndexPath xiu 阅读全文

坑:URL Scheme没有跳转

2017-12-15 17:57 by dengchaojie_learner, 925 阅读, 0 推荐, 收藏, 编辑
摘要:报错:[_NCWidgetExtensionContext openURL:completionHandler:]_block_invoke failed: Error Domain=NSOSStatusErrorDomain Code=-50 "(null) 如果报这个错说明 urlScheme有 阅读全文

UICollectionView.init不能这样初始化

2017-12-15 14:08 by dengchaojie_learner, 330 阅读, 0 推荐, 收藏, 编辑
摘要://正确 collectionView = UICollectionView.init(frame: view.bounds, collectionViewLayout: layout) //错误 collectionView = UICollectionView.init() collection 阅读全文

swift menuviewcontroller没有显示出来

2017-12-15 10:08 by dengchaojie_learner, 351 阅读, 0 推荐, 收藏, 编辑
摘要:// func canBecomeFirstResponder() -> Bool { // return true // } override var canBecomeFirstResponder: Bool { return true } 阅读全文

代码最小的改动 适配 iphone x

2017-12-14 21:11 by dengchaojie_learner, 134 阅读, 0 推荐, 收藏, 编辑
摘要:http://blog.csdn.net/fzhlee/article/details/78455339 // 状态栏(statusbar) CGRect StatusRect = [[UIApplication sharedApplication] statusBarFrame]; //标题栏 C 阅读全文

使用iPhoneX模拟器适配时如何改动最少的代码使不支持模拟器的.a文件相关的功能不报错

2017-12-14 21:07 by dengchaojie_learner, 174 阅读, 0 推荐, 收藏, 编辑
摘要:http://blog.csdn.net/qq_15509071/article/details/78351699 阅读全文
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 27 下一页