摘要: 1.判断用户是否有权限访问相册 #import <AssetsLibrary/AssetsLibrary.h> [objc] view plain copy ALAuthorizationStatus author = [ALAssetsLibraryauthorizationStatus]; if 阅读全文
posted @ 2016-08-01 16:47 阳光普照大地 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 转自简书:http://www.jianshu.com/p/50b63a221f09 http://www.jianshu.com/p/08f194e9904c 原作者:叶孤城___ self.tableView.tableFooterView = [[UIView alloc] init];试过的 阅读全文
posted @ 2016-07-30 11:10 阳光普照大地 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 2x:58*58 80*80 120*120 3x:87*87 120*120 180*180 阅读全文
posted @ 2016-07-27 17:46 阳光普照大地 阅读(198) 评论(0) 推荐(0) 编辑
摘要: CATransition* transition = [CATransition animation]; transition.type = kCATransitionPush; //动画效果 transition.subtype = kCATransitionFromLeft; //动画方向 [n 阅读全文
posted @ 2016-07-26 12:10 阳光普照大地 阅读(189) 评论(0) 推荐(0) 编辑
摘要: UISwipeGestureRecognizer *recognizer; recognizer = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(handleSwipeFrom:)]; [recogniz 阅读全文
posted @ 2016-07-20 18:11 阳光普照大地 阅读(184) 评论(0) 推荐(0) 编辑
摘要: ViewController *rootVC = (ViewController *)self.presentingViewController; while (rootVC.presentingViewController) { rootVC = (ViewController *)rootVC. 阅读全文
posted @ 2016-07-20 17:26 阳光普照大地 阅读(134) 评论(0) 推荐(0) 编辑
摘要: [objc] view plain copy // // QrCodeImage.h // matchPlus // // Created by mnn on 16/4/14. // Copyright © 2016年 mnn. All rights reserved. // #import <UI 阅读全文
posted @ 2016-07-20 09:05 阳光普照大地 阅读(226) 评论(0) 推荐(0) 编辑
摘要: NSDateFormatter *inputFormatter = [[NSDateFormatter alloc] init]; [inputFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"zh_CN"]]; [in 阅读全文
posted @ 2016-07-09 10:06 阳光普照大地 阅读(86) 评论(0) 推荐(0) 编辑
摘要: platform:ios,'8.0'target 'APPNAME' do pod 'SMSSDK' pod 'MBProgressHUD', '0.9.1' pod 'AFNetworking', '2.5.4' pod 'Masonry' pod 'AMapSearch' pod 'AMapLo 阅读全文
posted @ 2016-06-22 17:49 阳光普照大地 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1.升级10.11后,运行pod命令出现: 安装时 Mac-mini:~ macuser$ sudo gem install cocoapods ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/ 阅读全文
posted @ 2016-06-22 10:25 阳光普照大地 阅读(73) 评论(0) 推荐(0) 编辑