随笔分类 - iOS项目各种设置问题
摘要:引入SystemConfiguration库并添加头文件:#import 代码如下: NSArray *ifs = (__bridgeid)CNCopySupportedInterfaces(); for (NSString *ifnam in ifs) { NSDictionary *info = (__bridgeid)CNCopyCurrentNetworkInfo...
阅读全文
摘要://隐藏StateBar- (BOOL)prefersStatusBarHidden{ returnYES;}
阅读全文
摘要://保持横排方向-(NSUInteger)supportedInterfaceOrientations{ returnUIInterfaceOrientationMaskLandscapeLeft;}- (BOOL)shouldAutorotate{ returnYES;}
阅读全文
摘要:[[UIApplicationsharedApplication] setIdleTimerDisabled: YES];
阅读全文
摘要:如果已经录制好的录像的路径存放在: NSString * pathToMovie;那么如果要把这个录像给保存到相册里面就只要运行下面的代码: UISaveVideoAtPathToSavedPhotosAlbum(pathToMovie, nil, nil, nil);
阅读全文
摘要:CGRect mainScreen = [[UIScreen mainScreen] bounds];
阅读全文