摘要: 自定义了TabBarController 之后必须实现以下方法,就不会出现 Unbalanced calls to begin/end appearance transitions for xxx! 阅读全文
posted @ 2017-01-12 15:18 Now,OnMyWay 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 效果图: func setSearchControllerView() -> Void { /** 设置 searchResultController 并初始化 UISearchController*/ let naviSearchResultVC = UINavigationController( 阅读全文
posted @ 2016-12-06 18:16 Now,OnMyWay 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 效果图: 设置这个其实很简单...只要实现 tableView 的一个代理,即: 看到出来,这个方法是 iOS 8.0之后才提供的 具体的使用: @objc(tableView:editActionsForRowAtIndexPath:) func tableView(_ tableV 阅读全文
posted @ 2016-12-06 18:00 Now,OnMyWay 阅读(642) 评论(0) 推荐(0) 编辑
摘要: 1、发布新通知: 2、接受新通知 3、设置接受通知的监听方法 4、移除通知监听 阅读全文
posted @ 2016-12-05 17:57 Now,OnMyWay 阅读(2232) 评论(0) 推荐(0) 编辑
摘要: 一、使用 frame 添加的控件(控件没有使用约束) 方法一:使用 layer.cornerRadius 和 layer.masksToBounds 来设置圆角 layer.masksToBounds 方法二:使用 UIBezierPath 和 CAShapeLayer 来设置圆角 self.set 阅读全文
posted @ 2016-12-05 16:52 Now,OnMyWay 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 一、附上 SnapKit 在 github 的地址:https://github.com/SnapKit/SnapKit 官方指导添加约束:https://github.com/SnapKit/SnapKit#usage SnapKit 3.0 Migration Guide: https://gi 阅读全文
posted @ 2016-12-05 16:37 Now,OnMyWay 阅读(363) 评论(0) 推荐(0) 编辑
摘要: IOS可以直接使用单个icon(svg,png)。也可以直接引入字体应用: 1:将您从IconFont平台下载的字体文件(.ttf)添加到工程中; 打开Info.plist文件,增加一个新的Array类型的键,键名设置为UIAppFonts(Fonts provided by application 阅读全文
posted @ 2016-12-03 10:19 Now,OnMyWay 阅读(1356) 评论(0) 推荐(0) 编辑
摘要: 1、修改 UITableViewCell 的圆角,只需要在自定义的 cell 中重写 cell 的 frame 和设置 layer 的cornerRadius和masksToBounds两个属性。 即: 2、设置 UITableView 中 section 的圆角 阅读全文
posted @ 2016-11-25 13:48 Now,OnMyWay 阅读(6352) 评论(0) 推荐(0) 编辑
摘要: 1、极光推送iOS集成指南 2、极光推送在开发环境中能收到远程推送的通知,在生产环境中不能收到远程推送的通知 解决方案: 2.1、首先检查 JPUSH 在代码中的配置问题,即查看配置的是生产环境还是开发环境(apsForProduction的配置): appKey channel apsForPro 阅读全文
posted @ 2016-11-09 16:52 Now,OnMyWay 阅读(3413) 评论(0) 推荐(0) 编辑
摘要: NSMutableAttributedString 部分属性介绍 /** NSFontAttributeName 设置字体大小 *//** NSForegroundColorAttributeName 设置字体颜色 *//** NSParagraphStyleAttributeName 设置段落格式 阅读全文
posted @ 2016-09-29 18:08 Now,OnMyWay 阅读(596) 评论(0) 推荐(0) 编辑