代码改变世界

随笔档案-2016年09月

IOS 调用系统照相机和相册

2016-09-28 15:35 by xiangjune, 6477 阅读, 收藏,
摘要: /** * 调用照相机 */ - (void)openCamera { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.allowsEdi 阅读全文

aischool 倒计时VIEW封装

2016-09-28 10:46 by xiangjune, 405 阅读, 收藏,
摘要: @implementation TWPaperTimeCountLabel { NSInteger miaoshu; dispatch_source_t _timer; } -(id)initWithframe:(CGRect)frame endTime:(NSDate *)endtime dele 阅读全文

wkwebview a target="_blank" 打不开链接的解决方案

2016-09-08 17:40 by xiangjune, 3276 阅读, 收藏,
摘要: - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActi 阅读全文