2017年5月12日

andorid HTTPS 不需要证书 VolleyEror: com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not fou

摘要: 1.加证书(这里不说) 2.修改代码 import java.security.KeyManagementException;import java.security.NoSuchAlgorithmException;import java.security.SecureRandom;import 阅读全文

posted @ 2017-05-12 11:06 景树园 阅读(437) 评论(0) 推荐(0) 编辑

2016年12月10日

iOS 保持界面流畅的技巧

摘要: http://blog.ibireme.com/2015/11/12/smooth_user_interfaces_for_ios/ 这篇文章会非常详细的分析 iOS 界面构建中的各种性能问题以及对应的解决思路,同时给出一个开源的微博列表实现,通过实际的代码展示如何构建流畅的交互。 Index演示项 阅读全文

posted @ 2016-12-10 17:19 景树园 阅读(175) 评论(0) 推荐(0) 编辑

2016年11月29日

xib autolayout subview

摘要: http://sebastiancelis.com/2014/06/12/using-xibs-layout-custom-views/ initWitchCoder 有点小问题 阅读全文

posted @ 2016-11-29 11:30 景树园 阅读(89) 评论(0) 推荐(0) 编辑

自定义 XIB subview的时候 为什么控件都是 空的

摘要: http://blog.wtlucky.com/blog/2014/08/10/nested-xib-views/ 阅读全文

posted @ 2016-11-29 10:14 景树园 阅读(219) 评论(0) 推荐(0) 编辑

2016年11月28日

UINavigationController 返回按钮去掉文字

摘要: [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60) forBarMetrics:UIBarMetricsDefault]; 阅读全文

posted @ 2016-11-28 15:02 景树园 阅读(560) 评论(0) 推荐(0) 编辑

2016年11月25日

Nav titleView 设置的两个方式

摘要: 1.self.navigationItem.titleView = vv; 2.[self.navigationController.navigationBar addSubview:vv]; 阅读全文

posted @ 2016-11-25 11:30 景树园 阅读(338) 评论(0) 推荐(0) 编辑

2016年11月22日

IOS 拍照旋转修正

摘要: - (UIImage *)fixOrientation:(UIImage *)aImage { // No-op if the orientation is already correct if (aImage.imageOrientation == UIImageOrientationUp) re 阅读全文

posted @ 2016-11-22 14:57 景树园 阅读(196) 评论(0) 推荐(0) 编辑

2016年11月9日

IOS 颜色 16进制 转换

摘要: #define RGB(r,g,b) ([UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]) #define HEXTOCOLOR(hexValue) ([UIColor colorWithRed:((float)((h 阅读全文

posted @ 2016-11-09 11:33 景树园 阅读(220) 评论(0) 推荐(0) 编辑

2016年10月28日

self.navigationItem.titleView 不居中显示的问题

摘要: 自定义一个AUIView, AUIView * v=[AUIView new]; self.navigationItem.titleView = v; 在AUIView类内重写 setFrame 内容从这里来 http://blog.csdn.net/wsxzk123/article/details 阅读全文

posted @ 2016-10-28 16:56 景树园 阅读(1003) 评论(0) 推荐(0) 编辑

2016年10月22日

统一修改 UINavigationBar backItem

摘要: { UINavigationBar * navigationBar = [UINavigationBar appearance]; //返回按钮的箭头颜色 [navigationBar setTintColor:[UIColor whiteColor]]; //设置返回样式图片 UIImage *i 阅读全文

posted @ 2016-10-22 18:47 景树园 阅读(380) 评论(0) 推荐(0) 编辑

导航