摘要:
self.navigationController.navigationBar.barTintColor =[UIColor colorWithRed:70/255.0green:193/255.0 blue:14/255.0 alpha:1.0]; // 设置导航条的透明 // [self set
阅读全文
posted @ 2016-04-15 19:11
LiRenee
阅读(167)
推荐(0)
摘要:
今天xcode一直报这个错误,每次运行程序之前都要clean一下才能运行成功,查了一下才,有以下这些方法: rest 模拟器,重启xcode,clean程序等,最后我发现我遇到的问题是因为,我的模拟器上有两个一样的程序, why?是因为我改了项目的bundleId,所以模拟器上面有两个一样的app,
阅读全文
posted @ 2016-04-12 20:54
LiRenee
阅读(667)
推荐(0)
摘要:
/** * 将ImageVi的Image保存到相册 */ UIImageWriteToSavedPhotosAlbum(self.iconBigImageView.image, self, @selector(image:didFinishSavingWithError:contextInfo:),
阅读全文
posted @ 2016-04-11 19:50
LiRenee
阅读(177)
推荐(0)
摘要:
if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]) { //获取当前的授权状态 AVAuthorizationStatus AVStatus = [AVCaptur
阅读全文
posted @ 2016-04-11 19:46
LiRenee
阅读(634)
推荐(0)
摘要:
[[NSNotificationCenter defaultCenter] addObserver:selfselector:@selector(textFieldDidBeginEditing)name:UITextFieldTextDidChangeNotification object:nil
阅读全文
posted @ 2016-03-16 10:56
LiRenee
阅读(236)
推荐(0)
摘要:
首先要添加加头文件 #import <Photos/Photos.h> UIImagePickerController *controller = [[UIImagePickerController alloc] init]; controller.sourceType =
阅读全文
posted @ 2016-03-14 14:07
LiRenee
阅读(228)
推荐(0)
摘要:
- (void)viewDidLoad { [super viewDidLoad]; self.navigationItem.title = @"我"; self.navigationController.navigationBar.barStyle = UIBarStyleBlack; [UIAp
阅读全文
posted @ 2016-02-17 17:26
LiRenee
阅读(596)
推荐(0)
摘要:
$(SRCROOT)宏和$(PROJECT_DIR)宏都指xxx.xcodeproj所在的父目录例如:引用工程testDemo/scr/test.h 头文件,Header Search Paths中添加$(SRCROOT),引用为include “scr/test.h"如果在Header Searc...
阅读全文
posted @ 2016-01-19 18:53
LiRenee
阅读(282)
推荐(0)
摘要:
git init # 初始化本地git仓库(创建新仓库)git config --global user.name "xxx" # 配置用户名git config --global user.email "xxx@xxx.com" # 配置邮件git config --global color.ui...
阅读全文
posted @ 2015-12-04 21:26
LiRenee
阅读(139)
推荐(0)
摘要:
怎么产生第一响应者当我们点击屏幕,屏幕捕捉位置信息 传到cpu ,给application 封装 放在事件队列里 找第一响应者:从keybindle 里查 ,判断点击事件 点在不在自己范围之内 ,没有返回nil ,有的话则从subviews 最后一个视图遍历,再从子视图中遍历,直到自己没有子视图,就...
阅读全文
posted @ 2015-12-04 10:22
LiRenee
阅读(341)
推荐(0)