摘要: .h文件 .m文件 阅读全文
posted @ 2017-11-30 11:40 MaricoSun 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 首先初始化,这就不细说了,三个代理都写上: 一、自动弹出键盘 以往的写法: 实现如上的代码就可以了,但是如果把searchbar写到导航条上,发现这么写完全是没作用的。修改: 二、搜索输入时禁止searchBar上移隐藏导航条 三、修改searchBar取消按钮的颜色和文字 四、显示searBar的 阅读全文
posted @ 2017-05-17 17:55 MaricoSun 阅读(3860) 评论(0) 推荐(0) 编辑
摘要: [[UIBarButtonItem appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class]]] setTintColor:[UIColor whiteColor]]; [[UIBarButtonItem appearanceWhenContainedInInstancesOfClasses:@[[UISearchBa... 阅读全文
posted @ 2017-05-16 13:43 MaricoSun 阅读(1582) 评论(0) 推荐(0) 编辑
摘要: /** * swift3.0 单例样式 * 使用方法:let mark = SingelClass.shared */ class SingelClass: NSObject { static let shared = SingelClass() // 重载并私有 private override init() { // 初始化一些内容 ... 阅读全文
posted @ 2017-02-15 18:01 MaricoSun 阅读(1498) 评论(0) 推荐(0) 编辑
摘要: // // XCache.swift // UITablViewTest // // Created by Marcio on 2017/2/14. // Copyright © 2017年 Marcio. All rights reserved. // import UIKit class XCache: NSObject { /** * 读取缓存大小 ... 阅读全文
posted @ 2017-02-15 17:17 MaricoSun 阅读(2371) 评论(0) 推荐(0) 编辑
摘要: // // XGIFView.swift // UITablViewTest // // Created by Marico on 2017/2/14. // Copyright © 2017年 Marico. All rights reserved. // import UIKit import ImageIO import QuartzCore /** * MD5字符转换需要一... 阅读全文
posted @ 2017-02-15 15:01 MaricoSun 阅读(2342) 评论(0) 推荐(0) 编辑
摘要: 一、dyld: Symbol not found: ___NSArray0__ 解决方法: 将CoewFoundation的status改为Optional 二 、Xcode 8.1 cannot create __weak reference in file using manual refere 阅读全文
posted @ 2016-11-03 14:25 MaricoSun 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 具体实现如下: 关于UIGraphicsBeginImageContext 阅读全文
posted @ 2016-10-28 10:34 MaricoSun 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 升级pods后更新出现这样的问题。。。? 查看下pods的版本: 1.0.1 修改的方法为: Podfile内容更改: 这样后再: ok! 阅读全文
posted @ 2016-10-18 11:25 MaricoSun 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 在mac本上安装Jinja2,搜索网上介绍的经验,都是说使用easy_install或者pip安装,比如 #sudo easy_install Jinja2 #sudo pip install Jinja2 也有直接使用 #easy_install Jinja2的,但是我使用上述命令安装总是不成功, 阅读全文
posted @ 2016-08-15 15:24 MaricoSun 阅读(669) 评论(0) 推荐(0) 编辑