会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
阳光普照大地
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2016年8月1日
检测相机和定位的权限
摘要: 1.判断用户是否有权限访问相册 #import <AssetsLibrary/AssetsLibrary.h> [objc] view plain copy ALAuthorizationStatus author = [ALAssetsLibraryauthorizationStatus]; if
阅读全文
posted @ 2016-08-01 16:47 阳光普照大地
阅读(293)
评论(0)
推荐(0)
2016年7月30日
iOS开发的小技巧
摘要: 转自简书:http://www.jianshu.com/p/50b63a221f09 http://www.jianshu.com/p/08f194e9904c 原作者:叶孤城___ self.tableView.tableFooterView = [[UIView alloc] init];试过的
阅读全文
posted @ 2016-07-30 11:10 阳光普照大地
阅读(126)
评论(0)
推荐(0)
2016年7月27日
图标尺寸
摘要: 2x:58*58 80*80 120*120 3x:87*87 120*120 180*180
阅读全文
posted @ 2016-07-27 17:46 阳光普照大地
阅读(206)
评论(0)
推荐(0)
2016年7月26日
将UINavgationController的push改成从左到右
摘要: CATransition* transition = [CATransition animation]; transition.type = kCATransitionPush; //动画效果 transition.subtype = kCATransitionFromLeft; //动画方向 [n
阅读全文
posted @ 2016-07-26 12:10 阳光普照大地
阅读(194)
评论(0)
推荐(0)
2016年7月20日
给页面添加手势
摘要: UISwipeGestureRecognizer *recognizer; recognizer = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(handleSwipeFrom:)]; [recogniz
阅读全文
posted @ 2016-07-20 18:11 阳光普照大地
阅读(188)
评论(0)
推荐(0)
将模态弹窗一次性全部消失掉
摘要: ViewController *rootVC = (ViewController *)self.presentingViewController; while (rootVC.presentingViewController) { rootVC = (ViewController *)rootVC.
阅读全文
posted @ 2016-07-20 17:26 阳光普照大地
阅读(137)
评论(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 阳光普照大地
阅读(232)
评论(0)
推荐(0)
2016年7月9日
计算时间差
摘要: NSDateFormatter *inputFormatter = [[NSDateFormatter alloc] init]; [inputFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"zh_CN"]]; [in
阅读全文
posted @ 2016-07-09 10:06 阳光普照大地
阅读(91)
评论(0)
推荐(0)
2016年6月22日
Cocoapods 更新后 使用
摘要: 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 阳光普照大地
阅读(115)
评论(0)
推荐(0)
cocoapods
摘要: 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 阳光普照大地
阅读(77)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告