以前的一些收藏,后续再整理格式
如何使用git管理代码版本
http://www.cocoachina.com/ios/20140524/8536.html
http://www.tuicool.com/articles/eMJ7jy
ios8调用相机报警告: Snapshotting a view that has not been rendered results in an empty snapshot. Ensure you
(http://blog.csdn.net/chenyong05314/article/details/44812085)
http://blog.csdn.net/chenyong05314/article/details/44812085
http://www.4byte.cn/question/474924/uiimagepickercontroller-error-snapshotting-a-view-that-has-not-been-rendered-results-in-an-empty-snapshot-in-ios-7.html
cocapods
http://www.cocoachina.com/ios/20150930/13471.html
http://code4app.com/article/cocoapods-install-usage
ios9的适配
http://www.cocoachina.com/ios/20150929/13598.html
http://www.08kan.com/gwk/MjM5OTM0MzIwMQ/208621604/1/e6c8e5eba85d48e7c6b7229d711b6165.html
目前解决在iOS9中使用HTTP请求有下面两种方法:1、在Info.plist中添加NSAppTransportSecurity类型Dictionary,在NSAppTransportSecurity下添加NSAllowsArbitraryLoads,Boolean为YES。
2、直接使用CFNetwork做网络请求,ASIHTTPRequest就是基于CFNetwotk做的封装,如果有需求的同学可以看看ASI里面的源码,如果某个时间段你又想要使用HTTPS的话,ASI对SSL/TSL的证书验证有点问题,证书验证还得自己封装一下才行。刚才我说道,ATS是苹果针对与NSURL这一层做的封装,所以我们使用CFNetwork或者更底层做网络请求的话是不受ATS限制的。
Xcode6中添加空模板
Xocde6中没有空的模版,其实可以手动添加,特别是有老版本Xocde时特别简单。
首先找到老版本的空模版,然后考进Xocde6就OK了,路径如下
Finder—>应用程序—>Xcode右键显示包内容—>
Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/iOS/Application
iOS开发中的控制器-UIViewController
http://blog.csdn.net/whjforwork/article/details/44708175
学习
http://finalshares.com/bbs-index-run
http://finalshares.com/read-7220
iOS中 UIProgressView 技术分享
http://blog.csdn.net/qq_31810357/article/details/49020301
iOS画折线图
http://www.cnblogs.com/ios8/p/ios-draw-line.html
iOS9新系统下App Store应用上传新指南
http://www.cocoachina.com/appstore/20151010/13691.html
遍历对象的属性和方法
http://blog.csdn.net/crazychickone/article/details/36413671/
xcode快捷键
http://blog.csdn.net/mad1989/article/details/8945797
http://www.cocoachina.com/ios/20151016/13715.html
[图片上传中。。。(1)]
iOS GitHub 第三方开源库
http://www.bubuko.com/infodetail-712394.html
工程中加入gif动画
NSString *gifFilePath = [[NSBundle mainBundle] pathForResource:@"xiongmao" ofType:@"gif"];
NSData *gifData = [NSData dataWithContentsOfFile: gifFilePath];
NSMutableArray *frames = nil;
CGImageSourceRef src = CGImageSourceCreateWithData((__bridge CFDataRef)gifData, NULL);
double total = 0;
NSTimeInterval gifAnimationDuration;
if (src) {
size_t l = CGImageSourceGetCount(src);
if (l > 1){
frames = [NSMutableArray arrayWithCapacity: l];
for (size_t i = 0; i < l; i++) {
CGImageRef img = CGImageSourceCreateImageAtIndex(src, i, NULL);
NSDictionary *dict = (__bridge NSDictionary *)CGImageSourceCopyPropertiesAtIndex(src, 0, NULL);
if (dict){
NSDictionary *tmpdict = [dict objectForKey: @"{GIF}"];
total += [[tmpdict objectForKey: @"DelayTime"] doubleValue] * 100;
}
if (img) {
[frames addObject: [UIImage imageWithCGImage: img]];
CGImageRelease(img);
}
}
gifAnimationDuration = total / 100;
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(30, 50, 143*1.5, 192*1.5)];
[self.view addSubview:imageView];
imageView.animationImages = frames;
imageView.animationDuration = gifAnimationDuration;
[imageView startAnimating];
}
}
[图片上传中。。。(2)]
利用 UIWebView 显示 pdf 文件、网页。。。 webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; [webView setDelegate:self]; [webView setScalesPageToFit:YES]; [webView setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight]; [webView setAllowsInlineMediaPlayback:YES]; [self.view addSubview:webView]; NSString *pdfPath = [[NSBundle mainBundle] pathForResource:@"ojc" ofType:@"pdf"]; NSURL *url = [NSURL fileURLWithPath:pdfPath]; NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:5]; [webView loadRequest:request]; [myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString: @"http://www.cnblogs.com/tracy-e/"]]]; NSString *errorString = [NSString stringWithFormat:@"<html><center><font size= +5 color ='red'>An Error Occurred:
%@</fone></center></html>",error]; [myWebView loadHTMLString:errorString baseURL:nil]; //Stopping a load request when the view is to disappear - (void)viewWillDisappear:(BOOL)animate{ if ([myWebView loading]){ [myWebView stopLoading]; } myWebView.delegate = nil; [UIApplication shareApplication].networkActivityIndicatorVisible = NO; }
MD5 http://blog.csdn.net/lilizing/article/details/8535527
CGContextSaveGState
http://blog.csdn.net/qq_31810357/article/details/49229991
装双系统
http://www.chinamac.com/2014/0410/2477.html
win8
http://jingyan.baidu.com/article/6181c3e070dd09152ef153a3.html
http://msdn.itellyou.cn/ iso文件
pch文件
$(SRCROOT)
xib设置边框以及其它小技巧
http://my.oschina.net/ioslighter/blog/387991?p=1
- (BOOL)isMobileNumber:(NSString )mobileNum{ /* * 手机号码 * 移动:134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188 * 联通:130,131,132,152,155,156,185,186 * 电信:133,1349,153,180,189 / NSString * MOBILE = @"^1(3[0-9]|5[0-35-9]|8[025-9])\d{8}$"; /* 10 * 中国移动:China Mobile 11 * 134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188 12 / NSString * CM = @"^1(34[0-8]|(3[5-9]|5[017-9]|8[278])\d)\d{7}$"; /* 15 * 中国联通:China Unicom 16 * 130,131,132,152,155,156,185,186 17 / NSString * CU = @"^1(3[0-2]|5[256]|8[56])\d{8}$"; /* 20 * 中国电信:China Telecom 21 * 133,1349,153,180,189 22 / NSString * CT = @"^1((33|53|8[09])[0-9]|349)\d{7}$"; /* 25 * 大陆地区固话及小灵通 26 * 区号:010,020,021,022,023,024,025,027,028,029 27 * 号码:七位或八位 28 */ // NSString * PHS = @"^0(10|2[0-5789]|\d{3})\d{7,8}$"; NSPredicate *regextestmobile = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", MOBILE]; NSPredicate *regextestcm = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", CM]; NSPredicate *regextestcu = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", CU]; NSPredicate *regextestct = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", CT]; if (([regextestmobile evaluateWithObject:mobileNum] == YES) || ([regextestcm evaluateWithObject:mobileNum] == YES) || ([regextestct evaluateWithObject:mobileNum] == YES) || ([regextestcu evaluateWithObject:mobileNum] == YES)) { return YES; } else { return NO; }
}
textflied
http://blog.csdn.net/lianbaixue/article/details/9719291
内存优化
http://segmentfault.com/a/1190000000387082
正则表达式
http://www.w2bc.com/Article/42322
适配
http://my.oschina.net/u/615517/blog/377953
判断网络状态
http://www.sxt.cn/info-6128-u-7760.html
网络连接异常
http://blog.csdn.net/enuola/article/details/8169302
上传图片
//保存图片
-
(void)saveImage:(UIImage )tempImage WithName:(NSString )imageName
{
NSData imageData = UIImagePNGRepresentation(tempImage);
NSString documentPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString* totalPath = [documentPath stringByAppendingPathComponent:imageName];//保存到 document
[imageData writeToFile:totalPath atomically:NO];//保存到 NSUserDefaults
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
[userDefaults setObject:totalPath forKey:@"avatar"];//上传服务器
[[HSLoginClass new] uploadAvatar:totalPath];
}
//从document取得图片
- (UIImage *)getImage:(NSString *)urlStr
{
return [UIImage imageWithContentsOfFile:urlStr];
}
开关
http://www.it165.net/pro/html/201409/22809.html
http://blog.csdn.net/iukey/article/details/7304339
时间选择器
http://my.oschina.net/u/616092/blog/95000
日期选择器
http://www.oschina.net/question/262659_141940
http://www.cnblogs.com/wendingding/p/3771047.html
http://www.cocoachina.com/bbs/read.php?tid=182382
自定义AlertView
http://www.wahenzan.com/a/mdev/ios/2015/0106/1439.html
http://www.cocoachina.com/ios/20141126/10320.html
Code Review
图表
http://www.oschina.net/ios/codingList/397/ios-charting?sort=time&p=2
证书问题
http://www.jianshu.com/p/b10680a32d35
连电脑看真机沙盒数据
http://blog.csdn.net/sirodeng/article/details/7980265
http://my.oschina.net/are1OfBlog/blog/486555
程序进后台时 保持蓝牙连接
http://blog.csdn.net/zhuzhihai1988/article/details/30081991
字典转化成json
http://www.2cto.com/kf/201311/260605.html
蓝牙连接问题
http://www.cocoachina.com/bbs/read.php?tid=107096
Xcode7 设置 Project->Info->Configurations 里面在哪里 能截图看下吗
[图片上传中。。。(3)]
nsintenger 和byte 的转化
http://www.itstrike.cn/Question/d4d041c8-894d-41f7-8a9b-a85b6a0b89d7.html
http://www.cocoachina.com/bbs/read.php?tid=82581
date n各月之前
http://www.cnblogs.com/sgdkg/p/3611595.html
http://www.cnblogs.com/sgdkg/p/3611595.html
http://blog.sina.com.cn/s/blog_6f72ff900102v2vq.html
谓词
http://blog.sina.com.cn/s/blog_4cd8dd130101ntev.html
uuchart
http://www.bubuko.com/infodetail-962955.html
打包ipa
http://www.itnose.net/detail/6144262.html
app id
https://developer.apple.com/library/ios/qa/qa1713/_index.html
真机测试
http://jingyan.baidu.com/article/48b558e33b96a27f38c09aa4.html
app 打包提交
http://zhidao.baidu.com/link?url=zFYItnwvVUeatqAXzPSVPZWIKCXCUv8DkjZtdAF5sIL_YL2itf-yguVlAWq73URVlTVbzhJXHIAxfc_cZ5h-S1PY-y0FencPMTrViSJeM0W
http://blog.csdn.net/mad1989/article/details/8167529
http://my.oschina.net/u/1245365/blog/196420
上架app
http://jingyan.baidu.com/article/f25ef25477db8b482d1b8252.html
http://blog.csdn.net/jijiji000111/article/details/48780599
http://zhidao.baidu.com/link?url=FziBh462uDKGDfZRvGbcl_OHOfwwR7Nz6jrnIixsJ-l7ixK7IU7VVav5_hShpq5BmYtyWtBFqDax6m43uyOY1_bz67Po9ZqcN-SPVtMbigm
IOS 9系统的App Store新应用提审详细攻略
http://game.91.com/chanye/ganhuo/21888458_3.html
http://www.cocoachina.com/appstore/20150121/10977.html
上传技巧
http://bbs.umeng.com/thread-11569-1-1.html
提高代码质量
http://www.cocoachina.com/ios/20150923/13531.html
两个app之间的跳转传值
http://www.mamicode.com/info-detail-106580.html
跳转通信
http://blog.csdn.net/lvxiangan/article/details/44008283
http://www.henishuo.com/ios-app-communication/
网络指示器
http://www.cnblogs.com/tx8899/p/4091975.html
AES加密
http://www.it165.net/pro/html/201410/24073.html //有iv key
http://blog.csdn.net/duxinfeng2010/article/details/8958686
https://www.baidu.com/s?wd=ios%E4%B8%AD%E7%9A%84AES%2FCBC%2FPKCS5Padding&rsv_spt=1&rsv_iqid=0x9fe2d85a0003a816&issp=1&f=8&rsv_bp=0&rsv_idx=2&ie=utf-8&tn=baiduhome_pg&rsv_enter=1&rsv_sug3=13&rsv_sug1=12
xlnetwork离线缓存封装
http://www.cocoachina.com/ios/20151123/14344.html
iOS AFNetworking网络请求类的简单封装
http://www.lanou3g.com/bbs/forum.php?mod=viewthread&tid=4824
app快速审核通道
https://developer.apple.com/contact/app-store/?topic=expedite
苹果 企业 开发者账号 注册、申请续费整个流程($299的账号)
http://blog.csdn.net/totogo2010/article/details/8854879
http://blog.csdn.net/dwarven/article/details/37692873
企业账号
http://www.cnblogs.com/dasn/p/4244687.html
发布
http://blog.csdn.net/pang040328/article/details/40924737
https
http://blog.sina.com.cn/s/blog_51a995b70102uwjo.html
http://blog.csdn.net/shuaihj/article/details/49999529
在iOS开发中,经常需要调用其它App,如拨打电话、发送邮件等。UIApplication:openURL:方法是实现这一目的的
http://blog.csdn.net/lengshengren/article/details/16339409
http://www.cocoachina.com/bbs/read.php?tid=83937
转 iOS程序中调用系统自带应用(短信,邮件,浏览器,地图,appstore,拨打电话)
http://www.oschina.net/p/siphon
http://download.csdn.net/download/chenzhenefbdf13/5302518
ssl证书
http://www.cocoachina.com/industry/20140818/9401.html
pop界面
http://www.jianshu.com/p/d39f7d22db6c
第三方框架
http://www.open-open.com/lib/view/open1436365138442.html
ios UIWebView 加载网页、文件、 html
http://m.blog.csdn.net/article/details?plg_nld=1&id=50471189&plg_auth=1&plg_uin=1&plg_usr=1&plg_vkey=1&plg_nld=1&plg_dev=1
长按复制粘贴和放大镜
http://www.xuebuyuan.com/2191210.html
http://blog.csdn.net/qq_26359763/article/list/2
上传头像
http://www.swifthumb.com/thread-2555-1-1.html
http://blog.csdn.net/worldzhy/article/details/41575843
http://www.aichengxu.com/view/10678
http://www.bubuko.com/infodetail-1142622.html
格式
http://blog.csdn.net/minggeqingchun/article/details/50498300
抽屉效果
http://www.cnblogs.com/chebaodaren/p/4923311.html
https://github.com/gotosleep/JASidePanels
视频
http://github.ibireme.com/github/list/ios/
ios蓝牙协议4.0
http://www.coderyi.com/archives/137
linphone
https://github.com/BelledonneCommunications/linphone-iphone
http://shallwelearn.com/blog/build-linphone-for-iphone-and-ipad/
https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/README.md#readme
获取uuid
http://blog.sina.com.cn/s/blog_5971cdd00102vqgy.html
花瓶地址
http://www.charlesproxy.com/
mac安装vpn
http://jingyan.baidu.com/article/48b37f8d4c44cb1a646488a1.html
apple pay
https://open.unionpay.com/ajweb/product/detail?id=80
极光推送
http://www.cnblogs.com/wolfhous/p/5358327.html
cocapods
http://www.jianshu.com/p/6e5c0f78200a
第三方框架写约束
http://www.jianshu.com/p/d172131d24c9
汉语拼音 searchvc
http://www.myexception.cn/operating-system/1916719.html
https://github.com/Tbwas/NSString-Check/blob/master/NSString%2BCheck.h
webview
http://www.jianshu.com/p/ba4dd89ee82d
iOS:WebView 加载PDF文件
http://blog.csdn.net/codywangziham01/article/details/37658399
http://blog.csdn.net/m372897500/article/details/50680837
自定义百度地图气泡
http://www.jianshu.com/p/6a334f071c69
百度地图标注
http://www.codes51.com/article/detail_180517.html
https://github.com/iphone5solo/PYPhotosView 用法简单的呈现一组图片的框架
大牛博客
http://blog.csdn.net/deft_mkjing
http://www.code4app.com/forum.php?mod=viewthread&tid=8639&fromuid=720579
改变web view 字体大小
http://www.aichengxu.com/view/44782
[图片上传中。。。(4)]
1.应用代码混淆,可参考国外开发者写的方案https://github.com/Polidea/ios-class-guard,这个还有点bug,需要懂一些shell脚本。2.链接一定要采用https,而且绑定证书,用afnetworking非常方便。
3.关键的传输数据要进行数字信封(随机数加时间戳),数字摘要(md5),不对称加密(rsa)综合加固。
4.关键业务的js通过加密的方式传回客户端,客户端解密再执行。
5.对重要页面和功能进行埋点和添加时间戳,后台定义规则,发现异常的 功能调用 立即进行系统报警,引起报警的设备,IP,帐号进行异常处理。
6.需要登录功能的一定要绑定设备,更换设备登陆的进行短信验证
7.对越狱的设备进行提醒和限制某些功能的使用
当然最好是进行原生的开发,我公司这边就出现过wap被破解,公司赔了几十万,当然公司财大气粗,几十万是毛毛雨(虽然我工资也不高。。。)
按钮在执行frame动画的时候怎么响应触发事件?
http://www.cnblogs.com/YouXianMing/p/4149103.html
http://pan.baidu.com/s/1mhHpt80 密码:sx1d
iOS开发全套视频
cocapods
http://www.jianshu.com/p/6e5c0f78200a
http://stackoverflow.com/questions/36972339/sudo-gem-install-cocoapods-doesnt-work-on-elcapitan-10-11-4-error-could-no
http://www.360doc.com/content/16/0702/13/31923622_572406123.shtml
http://www.cnblogs.com/liuwenqiang/p/5674591.html
http://www.cnblogs.com/liuwenqiang/p/5674591.html
ios右上角的下拉菜单
http://www.oschina.net/code/snippet_216465_53690
autolayout
http://www.360doc.com/content/15/0320/17/19663521_456746118.shtml
web view
http://www.cnblogs.com/gcb999/p/3178728.html
音频视频
http://www.finalshares.com/read.php?tid=39&fid=53
xcode 8
http://blog.csdn.net/jnbbwyth/article/details/52576169
下拉刷新
http://blog.csdn.net/riven_wn/article/details/46440119
小码哥h5
http://bbs.520it.com/forum.php?mod=viewthread&tid=1886&extra=
http://bbs.520it.com/forum.php?mod=viewthread&tid=2418?baidu-pc-B51-H5-XMGhtml5
网友评论