自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 NSDictionary简便方法

@implementation NSDictionary (Helper) - (id)keyForIndex:(NSUInteger)index {     NSArray* keys = [self sortedKeyArr];     NSString* key = keys[index];     return key; } - (id)objectForK

2016-08-04 10:10:21 154

原创 获取根视图控制器

- (UIViewController*)rootViewController {     if (self.parentViewController) {         return [self.parentViewController rootViewController];     }     else{         return self;     } }

2016-08-04 10:08:59 362

原创 弹出框控件

SVProgressHUD

2016-08-04 10:01:14 140

原创 文件操作简便宏定义

//应用配置文件存储路径 #define FilePathInSandBox(fileName) [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES) objectAtIndex:0] stringByAppendingPathComponent:fileName] #define App

2016-08-04 09:57:20 186

原创 设置url缓存大小

NSURLCache *URLCache = [[NSURLCache alloc] initWithMemoryCapacity:4 * 1024 * 1024                                                          diskCapacity:20 * 1024 * 1024                         

2016-08-04 09:12:57 230

原创 全局设置网页代理

//设置所有内嵌webView统一的User-Agent     NSMutableDictionary *dictionary = [NSMutableDictionary dictionaryWithObjectsAndKeys:[MTDCommonUtl getDeviceInfoParam], @"UserAgent", nil];     [dictionary setValu

2016-08-04 09:08:31 342

原创 应用屏蔽静音键

[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];

2016-08-04 09:05:56 198

原创 获取应用代理实例

/**  *  单例  *  *  @return  */ + (MTDAppDelegate*)sharedInstance {     return (MTDAppDelegate*)[[UIApplication sharedApplication] delegate]; }

2016-08-04 09:03:15 94

原创 ios 7隐藏导航栏页面滑动返回提前出现导航栏问题解决办法

不可直接使用self.navigationController.navigationBarHidden = NO,而应该使用 [self.navigationController setNavigationBarHidden:_exitButHideNavigationBar animated:YES];

2016-08-04 08:57:08 274

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除