上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: 摘的instance method '-addMask' not found (return type defaults to 'id')今天下午修复了一个警告这很明显是由于没有包含头文件造成的警告dan但明明在ZZ.m中包含了YY.h文件但发现是在YY.m 中包含了XX.h 文件而YY.h 中只有@class XX ;声明所以只包含YY.h 是不能包含XX.h 的。所以会出现警告在ZZ.m中重新包含XX.h 后,警告消除。之所以没有在.h 中直接包含.h 文件是因为,这样会链接比较多,硬链接不灵活。而且在.h 中会暴漏一些信息。 阅读全文
posted @ 2012-09-22 15:18 zander 阅读(4572) 评论(0) 推荐(0)
摘要: 1.代码加载nib文件 nib文件区分大小写ResumeDetail_ipad* resumeDetail_ipad = [[[ResumeDetail_ipadalloc] initWithNibName:@"ResumeDetail_ipad"bundle:nil] autorelease];加载 nib 文件 的时候 出现的ResumeDetail_ipad 区分大小写 阅读全文
posted @ 2012-09-21 09:46 zander 阅读(125) 评论(0) 推荐(0)
摘要: 关于tableView group样式 时设置 cell的width 宽度table frame 的 宽度 - 35 ooo 阅读全文
posted @ 2012-09-18 18:26 zander 阅读(2420) 评论(0) 推荐(0)
摘要: 1.UISwitch的初始化UISwitch *switchView = [[UISwitch alloc] initWithFrame:CGRectMake(4.0f, 16.0f, 100.0f, 28.0f)];2.设置UISwitch的初始化状态switchView.on = YES;//设置初始为ON的一边3.UISwitch事件的响应[switchView addTarget:self action:@selector(switchAction:) forControlEvents:UIControlEventValueChanged]; 阅读全文
posted @ 2012-09-17 14:13 zander 阅读(453) 评论(0) 推荐(0)
摘要: if(starttextfield==nil){ starttextfield=[[UITextFieldalloc]initWithFrame:CGRectMake(0, 0, 10, 10)]; } starttextfield.backgroundColor=[UIColorredColor]; UIView* viewTemp1 = [[UIView alloc]init]; viewTemp1.backgroundColor=[UIColorclearColor]; starttextfield.inputVie... 阅读全文
posted @ 2012-09-14 10:17 zander 阅读(199) 评论(0) 推荐(0)
摘要: (可转屏的)横竖屏 屏模式下的UIDatePicker (摘)http://www.miiceic.org.cn/ruangong/software_6260.html 阅读全文
posted @ 2012-09-11 16:47 zander 阅读(139) 评论(0) 推荐(0)
摘要: 判断iPhone虚拟键盘是否打开的代码http://blog.sina.com.cn/s/blog_70ba46340100oteq.htmlCocoaChina 会员“qqn_pipi”分享的判断 iPhone 虚拟键盘是否打开的代码,原理很简单:看当前的窗口是否存在一个 responder,从而判别 iPhone 的键盘是否打开了。BOOL TTIsKeyboardVisible() {// Operates on the assumption that the keyboard is visible if and only if there is a first// responder; 阅读全文
posted @ 2012-09-10 17:03 zander 阅读(454) 评论(0) 推荐(0)
摘要: iPhone和ipad键盘高度及键盘响应事件http://blog.csdn.net/benbenxiongyuan/article/details/7892019IPAD键盘高度:portrait 264landscape 352.iPhone键盘高度:Portrait 216Landscape 140背景: ios5之前,iphone上的键盘的高度是固定为216.0px高的,中文汉字的选择框是悬浮的,所以不少应用都将此高度来标注键盘的高度。 可是在ios5中,键盘布局变了,尤其是中文输入时,中文汉字选择框就固定在键盘上方,这样就使得原本与键盘紧密贴合的界面视图被中文汉字选择框给覆盖住了.. 阅读全文
posted @ 2012-09-10 16:10 zander 阅读(3208) 评论(0) 推荐(0)
摘要: UITextField-IOS开发摘自:http://www.myeducs.cn/sys/IOS/UITextFieldIOS-kaifa.htm//初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)];//设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderStyleRoundedRect;typedef enum { UITextBorderStyleNone, UITextBor.. 阅读全文
posted @ 2012-09-08 17:18 zander 阅读(1139) 评论(0) 推荐(0)
摘要: 1.CGRect aRect = [[UIScreenmainScreen] applicationFrame]; if (aRect.size.height>768) { NSLog(@"height ::%f",aRect.size.height); NSLog(@"竖屏幕....."); }else { NSLog(@"height ::%f",aRect.size.height); NSLog(@"横屏幕....."); }2. 有时候 没有用 这个问题我没有深究......UIDeviceOrien 阅读全文
posted @ 2012-09-06 14:27 zander 阅读(566) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 12 下一页