iOS高效開發(fā)工具匯總(轉(zhuǎn))
http://blog.csdn.net/chenyufeng1991/article/details/51284267
iOS開發(fā)調(diào)試技巧總結(jié)(持續(xù)更新中)
http://www.cocoachina.com/ios/20160321/15726.html
iOS開發(fā)編碼建議與規(guī)范(持續(xù)更新中)
http://blog.csdn.net/chenyufeng1991/article/details/50261901
https://github.com/chenyufeng1991/CollectionView
iOS開發(fā)——使用Navigation和TabBar構(gòu)造App框架與界面棧的重構(gòu)
http://blog.csdn.net/chenyufeng1991/article/details/51278515
(4)重構(gòu)界面棧,pop到之前不存在的界面
為什么要重構(gòu)界面棧翩迈?在實(shí)際開發(fā)中會(huì)遇到這樣的情況堤魁,在某幾個(gè)界面間是一個(gè)死循環(huán)妥泉,在進(jìn)行跳轉(zhuǎn)的時(shí)候不斷在幾個(gè)界面間push,然后同樣一個(gè)界面就會(huì)在棧中出現(xiàn)很多次刽沾,雖然這些棧都是不同的實(shí)例监氢,但是這樣完全沒有必要忙菠。棧中界面越來越多骡男,難道不會(huì)影響性能嗎傍睹?并且默認(rèn)有這樣的準(zhǔn)則:一個(gè)VC在棧中只有一個(gè)。所以吮炕,在必要時(shí)候访得,我們不要老是push悍抑,如果一個(gè)界面已經(jīng)出現(xiàn)過,我們可以嘗試pop。甚至沒有出現(xiàn)過谈竿,我們可以在棧中插入一個(gè)界面空凸,然后pop到該界面。這是為了從性能上去考慮丛楚,我們要不斷維護(hù)界面棧趣些。界面棧其實(shí)就是一個(gè)數(shù)組,插入刪除操作非常方便锦亦,但是同樣要提高警惕,容易造成crash顾瞪。
[objc]view plaincopy
/**
*??這里的需求是抛蚁,判斷我的界面棧前面有沒有FirstViewController,如果有的話,在FirstViewController后面插入一個(gè)InsertViewController,然后從當(dāng)前界面pop到InsertViewController钉跷,InsertViewController可以pop到FirstViewController肚逸。
否則,點(diǎn)擊按鈕不執(zhí)行任何操作
*
*/
-?(IBAction)insertButtonClicked:(id)sender?{
NSMutableArray*pageArray?=?[self.navigationController.viewControllersmutableCopy];
for(inti?=0;?i?<?pageArray.count;?i++)
{
idvc?=?pageArray[i];
//找到要插入頁面的前一個(gè)界面犬钢,這里就是FirstViewController
if([vcisKindOfClass:[FirstViewControllerclass]])
{
InsertViewController*insert?=?[[InsertViewControlleralloc]init];
//插入界面棧
[pageArrayinsertObject:insertatIndex:i?+1];
[self.navigationControllersetViewControllers:pageArrayanimated:NO];
//打印出當(dāng)前的界面棧
[GlobalKitviewControllersArray:self];
insert.hidesBottomBarWhenPushed=YES;
[self.navigationControllerpopToViewController:insertanimated:YES];
return;
}
}
}
Autolayout第三方庫Masonry的入門與實(shí)踐http://blog.csdn.net/chenyufeng1991/article/details/51429788
iOS開發(fā)實(shí)戰(zhàn)——攝像頭與相冊(cè)權(quán)限獲取邏輯優(yōu)化
http://blog.csdn.net/chenyufeng1991/article/details/51731217
iOS開發(fā)——使用Charles進(jìn)行https網(wǎng)絡(luò)抓包詳解http://blog.csdn.net/chenyufeng1991/article/details/50389989
http://blog.csdn.net/chenyufeng1991/article/details/50370248
http://blog.csdn.net/chenyufeng1991/article/details/50389174
http://blog.csdn.net/chenyufeng1991/article/details/50382404
iOS開發(fā)——遠(yuǎn)程消息推送的實(shí)現(xiàn)
http://blog.csdn.net/chenyufeng1991/article/details/50346157
http://blog.csdn.net/chenyufeng1991/article/details/50242007
iOS項(xiàng)目開發(fā)實(shí)戰(zhàn)——使用AFNetworkin
http://blog.csdn.net/chenyufeng1991/article/details/48501693
http://blog.csdn.net/chenyufeng1991/article/details/48502119查看進(jìn)行AFNetworking請(qǐng)求時(shí)的頭部信息
http://blog.csdn.net/chenyufeng1991/article/details/48502411查看AFnetworking網(wǎng)絡(luò)請(qǐng)求時(shí)服務(wù)器返回的頭部信息
http://blog.csdn.net/chenyufeng1991/article/details/48502955?
http://blog.csdn.net/chenyufeng1991/article/details/48506171 使用AFNetworking進(jìn)行序列化
http://blog.csdn.net/chenyufeng1991/article/details/48521339使用AFNetworking加載網(wǎng)絡(luò)圖片
http://blog.csdn.net/chenyufeng1991/article/details/48520405?使用AFNetworking進(jìn)行網(wǎng)絡(luò)狀態(tài)的監(jiān)測(cè)