技术
普通网友
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UINavigationController的隐藏方法
UINavigationController的隐藏方法 在开发中有把UINavigationController隐藏的需求 // 2、设置导航栏标题属性:设置标题颜色 self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeN原创 2017-09-15 10:09:15 · 598 阅读 · 0 评论 -
SB布局 textfield 显示时的frame和输入时的frame不一样
在用SB布局时出现 显示时的frame和输入时的frame不一样 解决办法: textField.clearButtonMode = UITextFieldViewModeWhileEditing;原创 2017-09-15 14:47:36 · 404 阅读 · 0 评论 -
swift Alamofire 中的RequestAdapter与RequestRetrier
在最近的开发中,遇到网络请求中会验证token是否超时的需求,如果超时需要自动获取新的token,然后在完成网络请求. OC中有 NSURLProtocol 进行网络请求拦截,而swift 的 Alamofire框架中 RequestAdapter与RequestRetrier可以完美的解决这个问题,下面上代码: class OAuth2Handler: RequestAdapte原创 2017-12-11 10:34:35 · 2072 阅读 · 0 评论
分享