以前的一些收藏,后續(xù)再整理格式
如何使用git管理代碼版本
http://www.cocoachina.com/ios/20140524/8536.html
http://www.tuicool.com/articles/eMJ7jy
ios8調(dià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請求有下面兩種方法:1包蓝、在Info.plist中添加NSAppTransportSecurity類型Dictionary腾么,在NSAppTransportSecurity下添加NSAllowsArbitraryLoads,Boolean為YES案糙。
2、直接使用CFNetwork做網(wǎng)絡請求灿渴,ASIHTTPRequest就是基于CFNetwotk做的封裝辨绊,如果有需求的同學可以看看ASI里面的源碼悬钳,如果某個時間段你又想要使用HTTPS的話,ASI對SSL/TSL的證書驗證有點問題棘捣,證書驗證還得自己封裝一下才行辜腺。剛才我說道,ATS是蘋果針對與NSURL這一層做的封裝乍恐,所以我們使用CFNetwork或者更底層做網(wǎng)絡請求的話是不受ATS限制的评疗。
Xcode6中添加空模板
Xocde6中沒有空的模版,其實可以手動添加茵烈,特別是有老版本Xocde時特別簡單百匆。
首先找到老版本的空模版,然后考進Xocde6就OK了呜投,路徑如下
Finder—>應用程序—>Xcode右鍵顯示包內(nèi)容—>
Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/iOS/Application
iOS開發(fā)中的控制器-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新系統(tǒng)下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 文件啥寇、網(wǎng)頁。男图。示姿。 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
裝雙系統(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設置邊框以及其它小技巧
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 * 聯(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 * 中國移動: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 * 中國聯(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 * 中國電信:China Telecom 21 * 133,1349,153,180,189 22 / NSString * CT = @"^1((33|53|8[09])[0-9]|349)\d{7}$"; /* 25 * 大陸地區(qū)固話及小靈通 26 * 區(qū)號: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
內(nèi)存優(yōu)化
http://segmentfault.com/a/1190000000387082
正則表達式
http://www.w2bc.com/Article/42322
適配
http://my.oschina.net/u/615517/blog/377953
判斷網(wǎng)絡狀態(tài)
http://www.sxt.cn/info-6128-u-7760.html
網(wǎng)絡連接異常
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.reibang.com/p/b10680a32d35
連電腦看真機沙盒數(shù)據(jù)
http://blog.csdn.net/sirodeng/article/details/7980265
http://my.oschina.net/are1OfBlog/blog/486555
程序進后臺時 保持藍牙連接
http://blog.csdn.net/zhuzhihai1988/article/details/30081991
字典轉(zhuǎn)化成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 的轉(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
真機測試
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新應用提審詳細攻略
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
兩個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)絡指示器
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)絡請求類的簡單封裝
http://www.lanou3g.com/bbs/forum.php?mod=viewthread&tid=4824
app快速審核通道
https://developer.apple.com/contact/app-store/?topic=expedite
蘋果 企業(yè) 開發(fā)者賬號 注冊、申請續(xù)費整個流程($299的賬號)
http://blog.csdn.net/totogo2010/article/details/8854879
http://blog.csdn.net/dwarven/article/details/37692873
企業(yè)賬號
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
在iOS開發(fā)中难裆,經(jīng)常需要調(diào)用其它App子檀,如撥打電話、發(fā)送郵件等乃戈。UIApplication:openURL:方法是實現(xiàn)這一目的的
http://blog.csdn.net/lengshengren/article/details/16339409
http://www.cocoachina.com/bbs/read.php?tid=83937
轉(zhuǎn) iOS程序中調(diào)用系統(tǒng)自帶應用(短信褂痰,郵件,瀏覽器症虑,地圖缩歪,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.reibang.com/p/d39f7d22db6c
第三方框架
http://www.open-open.com/lib/view/open1436365138442.html
ios UIWebView 加載網(wǎng)頁谍憔、文件匪蝙、 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藍牙協(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.reibang.com/p/6e5c0f78200a
第三方框架寫約束
http://www.reibang.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.reibang.com/p/ba4dd89ee82d
iOS:WebView 加載PDF文件
http://blog.csdn.net/codywangziham01/article/details/37658399
http://blog.csdn.net/m372897500/article/details/50680837
自定義百度地圖氣泡
http://www.reibang.com/p/6a334f071c69
百度地圖標注
http://www.codes51.com/article/detail_180517.html
https://github.com/iphone5solo/PYPhotosView 用法簡單的呈現(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.應用代碼混淆千元,可參考國外開發(fā)者寫的方案https://github.com/Polidea/ios-class-guard,這個還有點bug颤绕,需要懂一些shell腳本幸海。2.鏈接一定要采用https,而且綁定證書奥务,用afnetworking非常方便物独。
3.關鍵的傳輸數(shù)據(jù)要進行數(shù)字信封(隨機數(shù)加時間戳),數(shù)字摘要(md5),不對稱加密(rsa)綜合加固汗洒。
4.關鍵業(yè)務的js通過加密的方式傳回客戶端议纯,客戶端解密再執(zhí)行父款。
5.對重要頁面和功能進行埋點和添加時間戳溢谤,后臺定義規(guī)則,發(fā)現(xiàn)異常的 功能調(diào)用 立即進行系統(tǒng)報警憨攒,引起報警的設備世杀,IP,帳號進行異常處理肝集。
6.需要登錄功能的一定要綁定設備瞻坝,更換設備登陸的進行短信驗證
7.對越獄的設備進行提醒和限制某些功能的使用
當然最好是進行原生的開發(fā),我公司這邊就出現(xiàn)過wap被破解杏瞻,公司賠了幾十萬所刀,當然公司財大氣粗,幾十萬是毛毛雨(雖然我工資也不高捞挥。浮创。。)
按鈕在執(zhí)行frame動畫的時候怎么響應觸發(fā)事件砌函?
http://www.cnblogs.com/YouXianMing/p/4149103.html
http://pan.baidu.com/s/1mhHpt80 密碼:sx1d
iOS開發(fā)全套視頻
cocapods
http://www.reibang.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