摘要: 1.GitHub上创建账号2.https://github.com/new创建Repository name3. 打开Xcode,选择第二项Connect to a repository:4. 把repository克隆到本地目录下,比如桌面的TTImagePicker:5. 新建一个Xcode工程,保存到刚才新建的TTImagePicker目录下。这里不要勾选下面这个选项:6. 编辑工程,比如添加文件,编写代码之类的。7. File -> Source Control -> Commit8. File -> Source Control -> Push完。 阅读全文
posted @ 2013-04-26 10:07 金建彤 阅读(202) 评论(0) 推荐(0) 编辑
摘要: IOS中,必须经过用户同意才能访问用户的地理位置(CLLocationManager),这一过程是由系统控制的,在第一次请求时为自动询问用户,如果能够向用户展示自己使用坐标的原因,而非恶意访问,用户体验会好很多。View Row Code CLLocationManager *_locmanager = [[CLLocationManager alloc] init]; _locmanager.delegate = self; _locmanager.purpose = @"请允许访问你的位置,不然,没法干了。"; [_locmanager startUpdatingLoc 阅读全文
posted @ 2013-04-26 04:58 金建彤 阅读(298) 评论(0) 推荐(0) 编辑
摘要: -(void)regNotification{[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(keyboardWillChangeFrame:)name:UIKeyboardWillChangeFrameNotificationobject:nil];}-(void)unregNotification{[[NSNotificationCenterdefaultCenter]removeObserver:selfname:UIKeyboardWillChangeFrameNotificationobje 阅读全文
posted @ 2013-04-26 04:39 金建彤 阅读(174) 评论(0) 推荐(0) 编辑