私人资料库
本博客大部分技术文章,均从网络搜索得来,旨在收集整理技术资料,文章版权归属原作者,由此引起的任何版权问题,与本人无关。
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页
摘要: 转自:http://www.cnblogs.com/lovecode/articles/2261838.html转自:http://www.cnblogs.com/lovecode/articles/2264628.html转自:http://www.cnblogs.com/lovecode/articles/2277299.html1. 工程项目模板类型的更改 Xcode4时代 Xcode4.2新模板Navigation-based Application ------->Master-Detail Application=> iphoneS... 阅读全文
posted @ 2012-01-12 16:55 该显示名称已被其他用户使用 阅读(520) 评论(0) 推荐(1)
摘要: 转自:http://www.cnblogs.com/lovecode/articles/2263592.html在iOS5系统下有时考虑到程序的兼容性,我们会选择SDK低于4.3来编译,但在Xcode4.2中会出现如下错误:warning:iPhone apps with a deployment target lower than 4.3 should include an armv6 architecture(current IPHONEOS_DEPLOYMENT_TARGET = "4.0",ARCHS = "armv7").由google找到的一 阅读全文
posted @ 2012-01-12 16:47 该显示名称已被其他用户使用 阅读(220) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/lovecode/articles/2261473.htmlxcode 4.2 不再支持 Window-Based Application 的解决办法: 1.创建空项目 Empty Application。(在Xcode4.2下创建的这个空项目不再有MainWindow.xib文件了。) 2.Ctrl+N,创建User Interface下面的Window(选择“iOS->User Interface->Window),命名成MainWindow.xib(这名称可随意,只是以MainWindow我们更熟悉)。 3.File Own 阅读全文
posted @ 2012-01-12 16:44 该显示名称已被其他用户使用 阅读(306) 评论(0) 推荐(0)
摘要: 由于本人是iPhone3G老手机,固件只能升级到4.2.1。因此为了在新升级的xCode4.2+iOS5.0能够正常真机调试,所以在网络上搜索到这篇文章,得到了帮助。特摘录以备不时之需。(http://www.cocoachina.com/bbs/read.php?tid=79860)1.改target的”Build Setting“中的Architecture域下的Architectures为”armv6 armv7“2.再改其中valid architecture为armv6 armv73.改iOS Deployment Target为iOS4.24,如果plist中有require de 阅读全文
posted @ 2012-01-12 16:31 该显示名称已被其他用户使用 阅读(191) 评论(0) 推荐(0)
摘要: 转自:http://bbs.chinaunix.net/thread-3611660-1-1.htmlhttp://developer.apple.com/library/ios/samplecode/Birthdays/Birthdays.ziphttp://developer.apple.com/library/ios/samplecode/ClockControlPalette/ClockControlPalette.ziphttp://developer.apple.com/library/ios/samplecode/MVCNetworking/MVCNetworking.zipht 阅读全文
posted @ 2011-12-31 15:45 该显示名称已被其他用户使用 阅读(548) 评论(0) 推荐(0)
摘要: 转自:http://www.cocoachina.com/bbs/read.php?tid=63229&page=1互联应用经常会用到html颜色值转换UIColor,比如:#FF9900,0XFF9900等颜色字符串,以下方法可以将这些字符串转换为 UIColor对象。+(UIColor*)colorWithHexString:(NSString*)stringToConvert{NSString*cString=[[stringToConvertstringByTrimmingCharactersInSet:[NSCharacterSetwhitespaceAndNewlineCh 阅读全文
posted @ 2011-12-21 16:35 该显示名称已被其他用户使用 阅读(224) 评论(0) 推荐(0)
摘要: 转自:http://hi.baidu.com/aidfan/blog/item/a8c1e4ef6498ef2eadafd572.htmlPointsvoid CGContextMoveToPoint (CGContextRef c,CGFloat x,CGFloat y);指定一个点成为current pointQuartz会跟踪current point一般执行完一个相关函数后,current point都会相应的改变.Lines相关的几个函数void CGContextAddLineToPoint (CGContextRef c,CGFloat x,CGFloat y);创建一条直线,从 阅读全文
posted @ 2011-11-10 14:28 该显示名称已被其他用户使用 阅读(391) 评论(0) 推荐(0)
摘要: 转自:http://www.cocoachina.com/bbs/read.php?tid-73015.html1NSArray*arr1=[[NSArrayalloc]initWithObjects:@"0",@"5",nil];23NSData*data=[NSKeyedArchiverarchivedDataWithRootObject:arr1];45NSArray*arr2=[NSKeyedUnarchiverunarchiveObjectWithData:data];67NSLog(@"->%@",[arr1obje 阅读全文
posted @ 2011-10-28 15:10 该显示名称已被其他用户使用 阅读(393) 评论(0) 推荐(0)
摘要: 转自:http://www.cocoachina.com/bbs/read.php?tid-27420.html你还在使用myImage = [UIImage imageNamed:@"icon.png"];吗???!!!如题,是不是大家为了方便都这样加载图片啊myImage = [UIImage imageNamed:@"icon.png"];那么小心了这种方法在一些图片很少,或者图片很小的程序里是ok的。但是,在大量加载图片的程序里,请千万不要这样做。为什么呢 ???????这种方法在application bundle的顶层文件夹寻找由供应的名字的 阅读全文
posted @ 2011-09-15 12:23 该显示名称已被其他用户使用 阅读(414) 评论(0) 推荐(0)
摘要: 转自:http://blog.sina.com.cn/s/blog_4adf31ea0100sxxr.html概述该NSUserDefaults类提供了一个默认的系统编程接口进行交互。在默认系统允许应用程序来定制其行为,以符合使用者的偏好。例如,您可以允许用户确定测量你的应用程序显示文件或如何往往会自动储存单位。通过分配应用程序记录的参数值在用户的默认数据库设置这种优惠。在运行时,可以使用NSUserDefaults对象读取您的应用程序的默认数据库使用从用户的默认值。NSUserDefaults缓存信息,以避免不必打开用户的默认数据库,每次需要一个默认值。它会自动调用的时间间隔周期性的,始终是 阅读全文
posted @ 2011-09-09 12:02 该显示名称已被其他用户使用 阅读(602) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页