原创 UIButton增加響應區域

原文地址:http://wenrisheng.iteye.com/blog/1987996 給UIButton 建立一個Category: –UIButton+EnlargeEdge.h #import <objc/runtime

原创 去除tabBar上方橫線

-(void)hiddenTopLine { /// 隱藏底部 TabBar 的上橫線 for (UIView *view in self.tabBarController

原创 UIButton 圖片文字左右互換

[self setTitleEdgeInsets:UIEdgeInsetsMake(0, -self.imageView.frame.size.width, 0, self.imageView.frame.size.w

原创 調用完系統相機,狀態欄消失

添加 - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; [[UIApplication sharedApplicati

原创 出現的解決方法

使用 [str length] <= 0 判斷處理

原创 極光推送通知和消息

APNS不能在APP未運行時收到 需要同時發送自定義消息 需要在代碼裏判斷什麼時候執行通知還是消息

原创 Please file a radar on UIKit if you see this assertion.

不知道具體原因 在使用MWPhotoBrowser框架時遇到過這個問題 MW在使用時會導致內存過大 點贊 收藏 分享 文章舉報 joker_wlk 發佈了45 篇原

原创 本地化處理

比如searchBar的取消按鈕的cancel改爲取消 在 PROJECT->info ->Localizations 裏添加Chinese(Simplified)就好了,它自己就變成了取消了。 點贊 收藏

原创 重寫navagationBar.backBarbuttonItem的返回方法

https://github.com/onegray/UIViewController-BackButtonHandler 把裏面的文件拖入到項目中,重寫 -(BOOL)navigationShouldPopOnBackButt

原创 鍵盤大寫與字符串大寫

鍵盤: cell.textField.autocapitalizationType = UITextAutocapitalizationTypeAllCharacters; 字符串 textField.text = [te

原创 scrollView使用masonry

//使用 [self.view addSubview:scrollV]; //不能用self.view = scrollV; [scrollV mas_makeConstraints:^(MASConstraintMaker

原创 判斷字典裏是否有key

[[dict allKeys] containsObject:@"key"] 點贊 收藏 分享 文章舉報 joker_wlk 發佈了45 篇原創文章 · 獲贊 4 ·

原创 宏定義輸出

#ifdef DEBUG //調試階段 //...表示在宏裏面的可變參數 //__VA_ARGS__表示宏裏面的可變參數 #define VLog(fmt, ...) NSLog((@"%s [Line %d] " fmt)

原创 如果上傳字典數組到服務器,服務器顯示的格式不是字典數組

int index = 0; for (NSDictionary* dic in self.contactArrM) { for (NSString* key in [dic allKeys]) {