摘要:
一.键盘通知当文本View(如UITextField,UITextView,UIWebView内的输入框)进入编辑模式成为first responder时,系统会自动显示键盘。成为firstresponder可能由用户点击触发,也可向文本View发送becomeFirstResponder消息触发。... 阅读全文
随笔档案-2014年08月
[转载]UITextField 与 键盘
2014-08-20 15:09 by 豆博客, 210 阅读, 收藏,
摘要:
键盘类型 :1.UIKeyboardTypeDefault 默认键盘 2.UIKeyboardTypeASCIICapable 显示ASCII码值得键盘3.UIKeyboardTypeNumbersAndPunctuation显示数字和标点符号得键盘4.UIKeyboardTypeURL显示带有 ... 阅读全文
iOS页面跳转及数据传递
2014-08-12 14:08 by 豆博客, 281 阅读, 收藏,
摘要:
iOS页面跳转:第一种[self.navigationControllerpushViewController:subTableViewControlleranimated:YES];//描述:通过NSNavigationBar进行跳转[self.navigationControllerpopVie... 阅读全文
检测版本更新
2014-08-12 13:53 by 豆博客, 194 阅读, 收藏,
摘要:
如果我们要检测app版本的更新,那么我们必须获取当前运行app版本的版本信息和appstore 上发布的最新版本的信息。 当前运行版本信息可以通过info.plist文件中的bundle version中获取:[cpp]view plaincopyNSDictionary*infoDic=[[NSB... 阅读全文
ASIFormDataRequest实现上传图片
2014-08-12 11:54 by 豆博客, 254 阅读, 收藏,
摘要:
UIImage*im=[UIImageimageWithContentsOfFile:path];//通过path图片路径获取图片NSData*data=UIImagePNGRepresentation(im);//获取图片数据/*ios中获取图片的方法有两种,一种是UIImageJPEGRepre... 阅读全文
获取设备的信息
2014-08-12 11:48 by 豆博客, 160 阅读, 收藏,
摘要:
NSLog(@"globallyUniqueString=%@",[[NSProcessInfoprocessInfo]globallyUniqueString]);//全球唯一标识NSLog(@"uniqueIdentifie=%@",[UIDevicecurrentDevice].uniqueI... 阅读全文
UIAlertView控件
2014-08-12 11:25 by 豆博客, 165 阅读, 收藏,
摘要:
/*alertView.h*/#import@interfacealertView:UIViewController{//创建控件对象UIAlertView*iToast;}@property(nonatomic,retain)UIAlertView*iToast;//让警告框消失的方法-(void... 阅读全文
IOS成长之路-去掉屏幕键盘的方法
2014-08-12 11:22 by 豆博客, 219 阅读, 收藏,
摘要:
//定义两个文本框UITextField*textName;UITextField*textSummary;//点击return按钮去掉-(BOOL)textFieldShouldReturn:(UITextField*)textField{[textFieldresignFirstResponde... 阅读全文
IOS成长之路-调用照相机和相册功能
2014-08-12 11:02 by 豆博客, 172 阅读, 收藏,
摘要:
打开相机://先设定sourceType为相机,然后判断相机是否可用(ipod)没相机,不可用将sourceType设定为相片库UIImagePickerControllerSourceTypesourceType=UIImagePickerControllerSourceTypeCamera;//... 阅读全文
注册时验证按钮倒计时
2014-08-06 11:55 by 豆博客, 134 阅读, 收藏,
摘要:
// 按钮点击事件-(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 阅读, 收藏,
摘要:
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{ UIImagePickerController * picker = [[UIImagePickerControl... 阅读全文
浙公网安备 33010602011771号