- (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];
}
电子书阅读器开发 (一)
10分钟适配 iOS 11 & iPhone X
ios - 用UICollectionView实现瀑布流详解
iOS小技巧积累
关于iOS性能优化
减小iOS应用程序的大小
iOS 保持界面流畅的技巧
iOS开发:iPhone尺寸和适配 - 简书
iPhoneX 适配-简书
phoneGap
SceneKit开发关于加载obj格式文件的处理
UIImage离屏渲染和当前屏幕渲染
局部折叠(折叠一个函数) :Command+Option+Left/Right
全局折叠(折叠当前文件下的全部函数):Shift+Command+Option+Left/Right
折叠注释块:(/* */之间的文字) : Ctrl+Shift+Command+Left/Right
网友评论