2017年9月6日

Python获得一个url最后一个/后的字符串

摘要: Python 2.7 阅读全文

posted @ 2017-09-06 15:42 zcz1513 阅读(467) 评论(0) 推荐(0) 编辑

Python下载网络图片

摘要: 环境:python2.7 阅读全文

posted @ 2017-09-06 11:20 zcz1513 阅读(1549) 评论(0) 推荐(0) 编辑

2016年5月10日

使用CFStringTransform将汉字转换为拼音

摘要: /* Boolean CFStringTransform(CFMutableStringRef string, CFRange *range, CFStringRef transform, Boolean reverse); 其中string参数是要转换的string,比如要转换的中文,同时它是mutable的,因此也直接作为最终转换后的字符串。range是要转换的范围,同时输出转换后改变的范围... 阅读全文

posted @ 2016-05-10 08:34 zcz1513 阅读(163) 评论(0) 推荐(0) 编辑

2015年11月10日

AppStore申请审核加速通道

摘要: 申请网址一个开发者账号一年只有三次机会,慎用。 阅读全文

posted @ 2015-11-10 15:23 zcz1513 阅读(356) 评论(0) 推荐(0) 编辑

2015年8月5日

iOS 跳转到AppStore评论区

摘要: 1 NSString *str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Softwar... 阅读全文

posted @ 2015-08-05 10:04 zcz1513 阅读(269) 评论(0) 推荐(0) 编辑

2015年4月14日

iOS ZBarSDK静态库支持arm64,armv7s

摘要: 下载zbar静态库,替换自己工程中的libzbar.a文件下载地址:https://github.com/wxm5558/libzbarlipo -info /Users/user/Desktop/libzbar.aArchitectures in the fat file: /Users/user... 阅读全文

posted @ 2015-04-14 16:36 zcz1513 阅读(220) 评论(0) 推荐(0) 编辑

2015年4月9日

处理数据是NSNull的情况

摘要: 相信不少开发者,都被NSNull坑过,最常见的是服务器返回的json里面,说好的字典、数组、数字,结果返回的是空值。这个时候,NSJSONSerialization 会自动把他们换成 NSNull。当我们再去用dict[@“hello”]的时候,就会出触发exception,导致程序崩溃。那么如何处... 阅读全文

posted @ 2015-04-09 10:24 zcz1513 阅读(138) 评论(0) 推荐(0) 编辑

2015年3月20日

计算UITextView的滑动高度

摘要: 1 - (CGFloat)getHeightByTextView:(UITextView *)myTextView withContent:(NSString *)content withFontSize:(CGFloat)size withTextColor:(UIColor *)color 2... 阅读全文

posted @ 2015-03-20 20:10 zcz1513 阅读(306) 评论(0) 推荐(0) 编辑

2015年3月12日

UITextView中设置页边距

摘要: 1 NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];2 paragraphStyle.headIndent = 10.0;3 paragraphStyle.fir... 阅读全文

posted @ 2015-03-12 12:06 zcz1513 阅读(277) 评论(0) 推荐(0) 编辑

2014年11月7日

iOS 手机号码格式化,344格式

摘要: 1 @interface ViewController ()2 {3 NSString *previousTextFieldContent;4 UITextRange *previousSelection;5 }6 @end1 - (void)viewDidLoad2 {3 ... 阅读全文

posted @ 2014-11-07 15:41 zcz1513 阅读(4502) 评论(0) 推荐(0) 编辑

导航