![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS學習
MoM_Xie
天行健,君子以自強不息;地勢坤,君子以厚德載物。
展开
-
獲取用戶語言配置信息
獲取用戶預言配置[[[NSUserDefaultsstandardUserDefaults] objectForKey:@"AppleLanguages"]objectAtIndex:0];原创 2013-02-05 16:48:10 · 186 阅读 · 0 评论 -
在圖片上覆蓋顏色
- (UIImage *)image:(UIImage *)argImage thintedWithColor:(UIColor *)argColor{ if (argColor != nil) { UIGraphicsBeginImageContext([argImage size]); CGContext原创 2013-08-13 16:20:32 · 479 阅读 · 0 评论 -
處理URL特殊字符
NSString* escaped_value = (NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, /* allocator */ (CFStringRef)value,原创 2013-08-15 11:48:58 · 420 阅读 · 0 评论 -
NSCFDictionary
[NSCFDictionary setObject:forKey:] mutating method send to immutating object修改方法:NSMutableDictionary *dict = [[NSUserDefaults standardUserDefaults] objectForKey:@"dict"];為:NSMutableDictionary原创 2013-08-16 11:34:28 · 1218 阅读 · 0 评论 -
UIScrollView聯動
#pragma mark UIScrollViewDelegate- (void)scrollViewDidScroll:(UIScrollView *)scrollView{ if (scrollView == theScrollView) { [theScrollView_1 setDelegate:nil]; [theScrol原创 2013-09-06 16:17:48 · 746 阅读 · 0 评论 -
獲取UIWebView內部HTML內容
thisURL = document.URL;thisHREF = document.location.href;thisSLoc = self.location.href;thisDLoc = document.location;thisTLoc = top.location.href;thisPLoc = parent.document.location;thisTHo原创 2013-09-04 10:55:19 · 449 阅读 · 0 评论 -
ASIHTTPRequest發送異步請求方法之一
下載ASIHTTPRequest加入Framework: CFNetwork.framework,SystemConfiguration.framework,MobileCoreServices.framework__block ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:sourceURL];[request se原创 2013-09-30 10:04:59 · 393 阅读 · 0 评论 -
iOS7下變更狀態欄文字顏色
1. 在plist配置文件中View controller-based status bar apperance設定為YES2. 在viewDidLoad方法中,添加[self setNeedsStatusBarApperanceUpdate]3. 添加方法- (UIStatusBarStyle)preferredStatusBarStyle{return UIStatusBa原创 2013-12-10 14:59:46 · 472 阅读 · 0 评论