- (void)dealloc{
self.m_WebView = nil;
//清除cookies
NSHTTPCookie *cookie;
NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for (cookie in [storage cookies]){
[storage deleteCookie:cookie];
}
//清除UIWebView的緩存
[[NSURLCache sharedURLCache] removeAllCachedResponses];
NSURLCache * cache = [NSURLCache sharedURLCache];
[cache removeAllCachedResponses];
[cache setDiskCapacity:0];
[cache setMemoryCapacity:0];
}
電子書(shū)閱讀器開(kāi)發(fā) (一)
10分鐘適配 iOS 11 & iPhone X
ios - 用UICollectionView實(shí)現(xiàn)瀑布流詳解
iOS小技巧積累
關(guān)于iOS性能優(yōu)化
減小iOS應(yīng)用程序的大小
iOS 保持界面流暢的技巧
iOS開(kāi)發(fā):iPhone尺寸和適配 - 簡(jiǎn)書(shū)
iPhoneX 適配-簡(jiǎn)書(shū)
phoneGap
SceneKit開(kāi)發(fā)關(guān)于加載obj格式文件的處理
UIImage離屏渲染和當(dāng)前屏幕渲染
局部折疊(折疊一個(gè)函數(shù)) :Command+Option+Left/Right
全局折疊(折疊當(dāng)前文件下的全部函數(shù)):Shift+Command+Option+Left/Right
折疊注釋塊:(/* */之間的文字) : Ctrl+Shift+Command+Left/Right