09 2012 档案

摘要:UIWebView*webView =[[UIWebView alloc] initWithFrame:CGRectMake(10,10,200,200)];NSURL *targetURL =[NSURL URLWithString:@"http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIWebView_Class/UIWebView_Class.pdf"];NSURLRequest*request =[NSURLRequest requestWithURL:targetURL 阅读全文
posted @ 2012-09-25 10:03 zander 阅读(1227) 评论(0) 推荐(0)
摘要:摘的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 阅读(4578) 评论(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 阅读(2421) 评论(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 阅读(201) 评论(0) 推荐(0)
摘要:(可转屏的)横竖屏 屏模式下的UIDatePicker (摘)http://www.miiceic.org.cn/ruangong/software_6260.html 阅读全文
posted @ 2012-09-11 16:47 zander 阅读(140) 评论(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 阅读(455) 评论(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 阅读(3222) 评论(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 阅读(1141) 评论(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 阅读(568) 评论(0) 推荐(0)
摘要:在webView 中显示 html 首先是html 在各个浏览器上的兼容问题 其次还要考虑 html 脚本在webView的实际显示效果 (其中有部分还要考虑ios 系统版本问题)1. html 脚本中&nbsp 显示空格 效果 (由于在html 中是不读取我们 敲击键盘的空格的) 在4.0&nbsp + 半角空格或者全角空格(就是英文下的空格,全角空格就是中文下的空格),如果不加半角空格 或者 全角空格 在webView中将显示 为字符串&nbsp 5.0 直接&nbsp 就ok 阅读全文
posted @ 2012-09-05 09:50 zander 阅读(279) 评论(0) 推荐(0)
摘要:绘制的整个过程 UIGraphicsBeginPDFPage();//创建一个空白页 CGContextSetTextMatrix(pdfContext, flip);//为上下文设置仿射矩阵 CGContextBeginPath(pdfContext); // 打开上下文 开始绘制CGFloatheight=50;NSString* textContent=[NSStringstringWithFormat:@"绘制第一个PDF"];NSString*width=[self getfontwidth:textContentfontsize:20]; int font=[U 阅读全文
posted @ 2012-09-04 10:43 zander 阅读(2804) 评论(0) 推荐(0)
摘要:MapKit学习笔记1、概述插入MapView,设置Delegate(一般为Controller),Annotati*****记录兴趣位置点(AnnotationView用来显示兴趣位置点),annotation是可选的,选中的annotation会显示callout,用来显示信息。2、设置地图显示类型:mapView.mapType = MKMapTypeStandard;mapView.mapType = MKMapTypeSatellite;mapView.mapType = MKMapTypeHybrid;3、显示用户位置设置为可以显示用户位置:mapView.showsUserLoc 阅读全文
posted @ 2012-09-03 18:42 zander 阅读(190) 评论(0) 推荐(0)
摘要:NSManagedObject* object=[self.listDataobjectAtIndex:i]; NSString* orderby = [object valueForKey:@"orderby"]; NSLog(@"orderby::%d",orderby.length==0);//可以 NSLog(@"orderby::%d",[orderby isEqualToString:@""]);//不可以 NSLog(@"orderby::%d",[orderby isEqual: 阅读全文
posted @ 2012-09-03 11:50 zander 阅读(6618) 评论(0) 推荐(0)
摘要:NSDate *da=[thisdata valueForKey:@"date"]; NSDateFormatter *dateformatter=[[[NSDateFormatteralloc]init]autorelease]; [dateformatter setDateFormat:@"MMMM dd, yyyy"]; NSString *resumename=[thisdata valueForKey:@"name"]; NSString *resumetime=[[NSStringalloc]initWithFormat: 阅读全文
posted @ 2012-09-03 10:08 zander 阅读(284) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2012-09-01 10:59 zander 阅读(1) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2012-09-01 10:40 zander 阅读(4) 评论(0) 推荐(0)