随笔分类 -  iOS项目各种设置问题

摘要:引入SystemConfiguration库并添加头文件:#import 代码如下: NSArray *ifs = (__bridgeid)CNCopySupportedInterfaces(); for (NSString *ifnam in ifs) { NSDictionary *info = (__bridgeid)CNCopyCurrentNetworkInfo... 阅读全文
posted @ 2014-03-05 19:38 wisejoker 阅读(431) 评论(0) 推荐(0)
摘要://隐藏StateBar- (BOOL)prefersStatusBarHidden{ returnYES;} 阅读全文
posted @ 2014-02-17 19:19 wisejoker 阅读(250) 评论(0) 推荐(0)
摘要://保持横排方向-(NSUInteger)supportedInterfaceOrientations{ returnUIInterfaceOrientationMaskLandscapeLeft;}- (BOOL)shouldAutorotate{ returnYES;} 阅读全文
posted @ 2014-02-17 19:17 wisejoker 阅读(233) 评论(0) 推荐(0)
摘要:[[UIApplicationsharedApplication] setIdleTimerDisabled: YES]; 阅读全文
posted @ 2014-02-17 19:14 wisejoker 阅读(146) 评论(0) 推荐(0)
摘要:如果已经录制好的录像的路径存放在: NSString * pathToMovie;那么如果要把这个录像给保存到相册里面就只要运行下面的代码: UISaveVideoAtPathToSavedPhotosAlbum(pathToMovie, nil, nil, nil); 阅读全文
posted @ 2013-10-30 09:17 wisejoker 阅读(139) 评论(0) 推荐(0)
摘要:CGRect mainScreen = [[UIScreen mainScreen] bounds]; 阅读全文
posted @ 2013-10-30 09:17 wisejoker 阅读(90) 评论(0) 推荐(0)