代码改变世界

IOS成长之路-去掉屏幕键盘的方法

2014-08-12 11:22 by 豆博客, 219 阅读, 0 推荐, 收藏,
摘要://定义两个文本框UITextField*textName;UITextField*textSummary;//点击return按钮去掉-(BOOL)textFieldShouldReturn:(UITextField*)textField{[textFieldresignFirstResponde... 阅读全文

IOS成长之路-调用照相机和相册功能

2014-08-12 11:02 by 豆博客, 172 阅读, 0 推荐, 收藏,
摘要:打开相机://先设定sourceType为相机,然后判断相机是否可用(ipod)没相机,不可用将sourceType设定为相片库UIImagePickerControllerSourceTypesourceType=UIImagePickerControllerSourceTypeCamera;//... 阅读全文

注册时验证按钮倒计时

2014-08-06 11:55 by 豆博客, 134 阅读, 0 推荐, 收藏,
摘要:// 按钮点击事件-(void)startTime{ __block int timeout=30; //倒计时时间 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dis... 阅读全文

ios相机和相册操作

2014-08-05 10:40 by 豆博客, 175 阅读, 0 推荐, 收藏,
摘要:-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{ UIImagePickerController * picker = [[UIImagePickerControl... 阅读全文