以前的一些收藏,后續(xù)再整理格式
如何使用git管理代碼版本
http://www.cocoachina.com/ios/20140524/8536.html
http://www.tuicool.com/articles/eMJ7jy
ios8調(diào)用相機(jī)報(bào)警告: 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請(qǐng)求有下面兩種方法:1、在Info.plist中添加NSAppTransportSecurity類(lèi)型Dictionary,在NSAppTransportSecurity下添加NSAllowsArbitraryLoads,Boolean為YES。
2、直接使用CFNetwork做網(wǎng)絡(luò)請(qǐng)求,ASIHTTPRequest就是基于CFNetwotk做的封裝,如果有需求的同學(xué)可以看看ASI里面的源碼,如果某個(gè)時(shí)間段你又想要使用HTTPS的話(huà),ASI對(duì)SSL/TSL的證書(shū)驗(yàn)證有點(diǎn)問(wèn)題,證書(shū)驗(yàn)證還得自己封裝一下才行。剛才我說(shuō)道,ATS是蘋(píng)果針對(duì)與NSURL這一層做的封裝,所以我們使用CFNetwork或者更底層做網(wǎng)絡(luò)請(qǐng)求的話(huà)是不受ATS限制的。
Xcode6中添加空模板
Xocde6中沒(méi)有空的模版,其實(shí)可以手動(dòng)添加,特別是有老版本Xocde時(shí)特別簡(jiǎn)單。
首先找到老版本的空模版,然后考進(jìn)Xocde6就OK了,路徑如下
Finder—>應(yīng)用程序—>Xcode右鍵顯示包內(nèi)容—>
Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/iOS/Application
iOS開(kāi)發(fā)中的控制器-UIViewController
http://blog.csdn.net/whjforwork/article/details/44708175
學(xué)習(xí)
http://finalshares.com/bbs-index-run
http://finalshares.com/read-7220
iOS中 UIProgressView 技術(shù)分享
http://blog.csdn.net/qq_31810357/article/details/49020301
iOS畫(huà)折線圖
http://www.cnblogs.com/ios8/p/ios-draw-line.html
iOS9新系統(tǒng)下App Store應(yīng)用上傳新指南
http://www.cocoachina.com/appstore/20151010/13691.html
遍歷對(duì)象的屬性和方法
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 第三方開(kāi)源庫(kù)
http://www.bubuko.com/infodetail-712394.html
工程中加入gif動(dòng)畫(huà)
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 文件、網(wǎng)頁(yè)。。。 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
iOS中 SDWebImage手動(dòng)清除緩存的方法 技術(shù)分享
http://blog.csdn.net/qq_31810357/article/details/49229991
裝雙系統(tǒng)
http://www.chinamac.com/2014/0410/2477.html
win8
http://jingyan.baidu.com/article/6181c3e070dd09152ef153a3.html
http://msdn.itellyou.cn/ iso文件
pch文件
$(SRCROOT)
xib設(shè)置邊框以及其它小技巧
http://my.oschina.net/ioslighter/blog/387991?p=1
- (BOOL)isMobileNumber:(NSString )mobileNum{ /* * 手機(jī)號(hào)碼 * 移動(dòng):134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188 * 聯(lián)通: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 * 中國(guó)移動(dòng):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 * 中國(guó)聯(lián)通: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 * 中國(guó)電信:China Telecom 21 * 133,1349,153,180,189 22 / NSString * CT = @"^1((33|53|8[09])[0-9]|349)\d{7}$"; /* 25 * 大陸地區(qū)固話(huà)及小靈通 26 * 區(qū)號(hào):010,020,021,022,023,024,025,027,028,029 27 * 號(hào)碼:七位或八位 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
內(nèi)存優(yōu)化
http://segmentfault.com/a/1190000000387082
正則表達(dá)式
http://www.w2bc.com/Article/42322
適配
http://my.oschina.net/u/615517/blog/377953
判斷網(wǎng)絡(luò)狀態(tài)
http://www.sxt.cn/info-6128-u-7760.html
網(wǎng)絡(luò)連接異常
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"];//上傳服務(wù)器
[[HSLoginClass new] uploadAvatar:totalPath];
}
//從document取得圖片
- (UIImage *)getImage:(NSString *)urlStr
{
return [UIImage imageWithContentsOfFile:urlStr];
}
開(kāi)關(guān)
http://www.it165.net/pro/html/201409/22809.html
http://blog.csdn.net/iukey/article/details/7304339
時(shí)間選擇器
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
證書(shū)問(wèn)題
http://www.itdecent.cn/p/b10680a32d35
連電腦看真機(jī)沙盒數(shù)據(jù)
http://blog.csdn.net/sirodeng/article/details/7980265
http://my.oschina.net/are1OfBlog/blog/486555
程序進(jìn)后臺(tái)時(shí) 保持藍(lán)牙連接
http://blog.csdn.net/zhuzhihai1988/article/details/30081991
字典轉(zhuǎn)化成json
http://www.2cto.com/kf/201311/260605.html
藍(lán)牙連接問(wèn)題
http://www.cocoachina.com/bbs/read.php?tid=107096
Xcode7 設(shè)置 Project->Info->Configurations 里面在哪里 能截圖看下嗎
[圖片上傳中。。。(3)]
nsintenger 和byte 的轉(zhuǎn)化
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
真機(jī)測(cè)試
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系統(tǒng)的App Store新應(yīng)用提審詳細(xì)攻略
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
提高代碼質(zhì)量
http://www.cocoachina.com/ios/20150923/13531.html
兩個(gè)app之間的跳轉(zhuǎn)傳值
http://www.mamicode.com/info-detail-106580.html
跳轉(zhuǎn)通信
http://blog.csdn.net/lvxiangan/article/details/44008283
http://www.henishuo.com/ios-app-communication/
網(wǎng)絡(luò)指示器
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網(wǎng)絡(luò)請(qǐng)求類(lèi)的簡(jiǎn)單封裝
http://www.lanou3g.com/bbs/forum.php?mod=viewthread&tid=4824
app快速審核通道
https://developer.apple.com/contact/app-store/?topic=expedite
蘋(píng)果 企業(yè) 開(kāi)發(fā)者賬號(hào) 注冊(cè)、申請(qǐng)續(xù)費(fèi)整個(gè)流程($299的賬號(hào))
http://blog.csdn.net/totogo2010/article/details/8854879
http://blog.csdn.net/dwarven/article/details/37692873
企業(yè)賬號(hào)
http://www.cnblogs.com/dasn/p/4244687.html
發(fā)布
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
http://blog.csdn.net/lengshengren/article/details/16339409
http://www.cocoachina.com/bbs/read.php?tid=83937
轉(zhuǎn) iOS程序中調(diào)用系統(tǒng)自帶應(yīng)用(短信,郵件,瀏覽器,地圖,appstore,撥打電話(huà))
http://www.oschina.net/p/siphon
http://download.csdn.net/download/chenzhenefbdf13/5302518
ssl證書(shū)
http://www.cocoachina.com/industry/20140818/9401.html
pop界面
http://www.itdecent.cn/p/d39f7d22db6c
第三方框架
http://www.open-open.com/lib/view/open1436365138442.html
ios UIWebView 加載網(wǎng)頁(yè)、文件、 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
長(zhǎng)按復(fù)制粘貼和放大鏡
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藍(lán)牙協(xié)議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.itdecent.cn/p/6e5c0f78200a
第三方框架寫(xiě)約束
http://www.itdecent.cn/p/d172131d24c9
漢語(yǔ)拼音 searchvc
http://www.myexception.cn/operating-system/1916719.html
https://github.com/Tbwas/NSString-Check/blob/master/NSString%2BCheck.h
webview
http://www.itdecent.cn/p/ba4dd89ee82d
iOS:WebView 加載PDF文件
http://blog.csdn.net/codywangziham01/article/details/37658399
http://blog.csdn.net/m372897500/article/details/50680837
自定義百度地圖氣泡
http://www.itdecent.cn/p/6a334f071c69
百度地圖標(biāo)注
http://www.codes51.com/article/detail_180517.html
https://github.com/iphone5solo/PYPhotosView 用法簡(jiǎn)單的呈現(xiàn)一組圖片的框架
大牛博客
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.應(yīng)用代碼混淆,可參考國(guó)外開(kāi)發(fā)者寫(xiě)的方案https://github.com/Polidea/ios-class-guard,這個(gè)還有點(diǎn)bug,需要懂一些shell腳本。2.鏈接一定要采用https,而且綁定證書(shū),用afnetworking非常方便。
3.關(guān)鍵的傳輸數(shù)據(jù)要進(jìn)行數(shù)字信封(隨機(jī)數(shù)加時(shí)間戳),數(shù)字摘要(md5),不對(duì)稱(chēng)加密(rsa)綜合加固。
4.關(guān)鍵業(yè)務(wù)的js通過(guò)加密的方式傳回客戶(hù)端,客戶(hù)端解密再執(zhí)行。
5.對(duì)重要頁(yè)面和功能進(jìn)行埋點(diǎn)和添加時(shí)間戳,后臺(tái)定義規(guī)則,發(fā)現(xiàn)異常的 功能調(diào)用 立即進(jìn)行系統(tǒng)報(bào)警,引起報(bào)警的設(shè)備,IP,帳號(hào)進(jìn)行異常處理。
6.需要登錄功能的一定要綁定設(shè)備,更換設(shè)備登陸的進(jìn)行短信驗(yàn)證
7.對(duì)越獄的設(shè)備進(jìn)行提醒和限制某些功能的使用
當(dāng)然最好是進(jìn)行原生的開(kāi)發(fā),我公司這邊就出現(xiàn)過(guò)wap被破解,公司賠了幾十萬(wàn),當(dāng)然公司財(cái)大氣粗,幾十萬(wàn)是毛毛雨(雖然我工資也不高。。。)
按鈕在執(zhí)行frame動(dòng)畫(huà)的時(shí)候怎么響應(yīng)觸發(fā)事件?
http://www.cnblogs.com/YouXianMing/p/4149103.html
http://pan.baidu.com/s/1mhHpt80 密碼:sx1d
iOS開(kāi)發(fā)全套視頻
cocapods
http://www.itdecent.cn/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