随笔分类 - ios UI
修改XCode默认注释并自动生成文档
摘要:1.找到注释模板位置 首先右键Xcode -> 选项 -> 在Finder中打开 -> 右键 -> 显示包内容 Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Template
阅读全文
ios系统分享
摘要:// 首先初始化activityItems参数 NSArray *activityItems = [[NSArray alloc]initWithObjects: desc,url,img,nil]; // 初始化一个UIActivityViewController...
阅读全文
ios判断app是否有打开相机的权限
摘要:#import #import AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo]; if (authStatus == AVAuthorizat...
阅读全文
IOS7改变状态栏文字的颜色以及导航栏背景颜色
摘要:ios7以下的版本设置导航栏背景颜色可以使用[[UINavigationBar appearance] setTintColor:[UIColor orangeColor]];ios7以后:[[UINavigationBar appearance] setBarTintColor:[UIColor orangeColor]];默认带有一定透明效果,可以使用以下方法去除系统效果[navigationController.navigationBar setTranslucent:NO];公司项目需要将状态栏的文字颜色设置为白色,以下方法即可[[UIApplication sharedApplica
阅读全文
浙公网安备 33010602011771号