![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
hibernate0125
这个作者很懒,什么都没留下…
展开
-
如何保持iOS上键盘出现时输入框不被覆盖
//------------------------------------------------------------------------------------- - (void)textFieldDidBeginEditing:(UITextField *)textField { currTextField = textField; } - (void)textFi转载 2014-04-09 10:38:05 · 436 阅读 · 0 评论 -
校验组织机构代码 合法性
组织机构代码验证规则: 组织机构代码是每一个机关、社会团体、企事业单位在全国范围内唯一的、始终不变的法定代码标识。 最新使用的组织机构代码在1997年颁布实施,由8位数字(或大写拉丁字母)本体代码和1位数字(或大写拉丁字母)校验码组成。本体代码采用系列(即分区段)顺序编码方法。校验码按下列公式计算: 8 C9 = 11 - MOD ( ∑Ci * Wi ,11) … (2)转载 2014-04-21 17:57:48 · 2819 阅读 · 0 评论 -
UISwipeGestureRecognizer各种手势的用法
//单击 UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc]initWithTarget:selfaction:@selector(handleSingleTap:)]; [self.viewaddGestureRecognizer:singleTap];转载 2014-03-20 09:25:28 · 576 阅读 · 0 评论 -
ios 将view转换成image
//将UIView转成UIImage -(UIImage *)getImageFromView:(UIView *)theView { //UIGraphicsBeginImageContext(theView.bounds.size); UIGraphicsBeginImageContextWithOptions(theView.bounds.size, YES, t转载 2014-03-18 14:18:53 · 560 阅读 · 0 评论 -
UIPopoverController 用法
iOS-raywenderlich翻译-UIPopoverController 使用教程(转 中文译文) 注:本文译自http://www.raywenderlich.com/1056/ipad-for-iphone-developers-101-uipopovercontroller-tutorial 13 MAY 2010 这是三篇文章中的第二转载 2014-03-12 09:40:57 · 616 阅读 · 0 评论 -
UItextField只获取焦点,不显示系统键盘
#pragma textDelegate -(BOOL)textFieldShouldBeginEditing:(UITextField *)textField{ //获取焦点后清空内容 // textField.text = @""; textField.inputView=[[UIView alloc]initWithFrame:CGRectZero];原创 2014-03-07 10:26:32 · 1785 阅读 · 0 评论 -
ios键盘通知和自定义键盘
http://www.winddisk.com/2012/07/19/iphone_keyboard_notification_custom_keyboard/转载 2014-03-07 09:06:04 · 459 阅读 · 0 评论 -
IOS实例 弹出框中添加多选
IOS实例 弹出框中添加多选 - 51CTO.COM 您所在的位置:移动开发 > iOS > IOS实例 弹出框中添加多选 IOS实例 弹出框中添加多选 2011-07-22 17:40 王军 互联网 字号:T | T 本文介绍的是IOS实例 弹出框中添加多选,实现在弹出框中填入table信息,并且用户可以实现多选信息,来看内容。 AD:201转载 2014-03-12 09:18:34 · 1196 阅读 · 0 评论 -
ios 键盘事件处理
App应用中,难免会需要用户输入一些相关数据。 于是就用到键盘。 键盘在iPhone和iPad中,类似是一个View的形式来显示和隐藏。 当一个输入框得到焦点时,系统会默认调用键盘事件。来显示键盘;当输入框失去焦点时,键盘会消失。 那么,键盘事件有一下4种: UIKIT_EXTERN NSString *const UIKeyboardWillShowNotific转载 2014-03-06 16:42:44 · 1207 阅读 · 0 评论 -
uitextfield光标定位参考代码
NSRange cursorPosition = [textview selectedRange]; NSInteger index = cursorPosition.location; NSMutableString *content = [[NSMutableString alloc] initWithString:textview.text];转载 2014-03-05 10:17:11 · 450 阅读 · 0 评论 -
ios 中弹窗的编程 和 一些处理方法
1. 在ios开发中使用 弹窗来显示信息。 //创建一个新的控制器 UIViewController* popoverContent = [[UIViewController alloc] init]; //创建popover控制器,用上面的控制器赋值初始化 UIPopoverController *popoverController=[[UIPo转载 2014-04-13 17:14:10 · 448 阅读 · 0 评论