12 2016 档案
摘要:效果图: func setSearchControllerView() -> Void { /** 设置 searchResultController 并初始化 UISearchController*/ let naviSearchResultVC = UINavigationController(
阅读全文
摘要:恢复内容开始 效果图: 设置这个其实很简单...只要实现 tableView 的一个代理,即: 看到出来,这个方法是 iOS 8.0之后才提供的 具体的使用: @objc(tableView:editActionsForRowAtIndexPath:) func tableView(_ tableV
阅读全文
摘要:1、发布新通知: 2、接受新通知 3、设置接受通知的监听方法 4、移除通知监听
阅读全文
摘要:一、使用 frame 添加的控件(控件没有使用约束) 方法一:使用 layer.cornerRadius 和 layer.masksToBounds 来设置圆角 layer.masksToBounds 方法二:使用 UIBezierPath 和 CAShapeLayer 来设置圆角 self.set
阅读全文
摘要:一、附上 SnapKit 在 github 的地址:https://github.com/SnapKit/SnapKit 官方指导添加约束:https://github.com/SnapKit/SnapKit#usage SnapKit 3.0 Migration Guide: https://gi
阅读全文
摘要:IOS可以直接使用单个icon(svg,png)。也可以直接引入字体应用: 1:将您从IconFont平台下载的字体文件(.ttf)添加到工程中; 打开Info.plist文件,增加一个新的Array类型的键,键名设置为UIAppFonts(Fonts provided by application
阅读全文

浙公网安备 33010602011771号