随笔分类 -  ios UI

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