上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页
摘要: 在网上查了下,有网友说是因为有变量重名,仔细检查了下代码,UIGraphicsEndImageContext()写成uigraphicsendimagecontext()了,改过来就编译通过了。 阅读全文
posted @ 2013-09-26 17:41 时光独白 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 在网上看到两种解决办法:第一种:设置自动引用计数关闭You need to turn offAutomatic Reference Counting. You do this by clicking on your project in the navigator (the top item in the finder-like thing on the left), then click on your target, select"Build Settings"and turn off the option"Objective-C Automatic Refe 阅读全文
posted @ 2013-09-26 10:53 时光独白 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 淘宝ued对android字体的研究,讲解很详细http://ued.taobao.com/blog/wp-content/uploads/2013/04/Android%E7%B3%BB%E7%BB%9F%E5%AD%97%E4%BD%93%E8%A7%84%E8%8C%83%E4%B8%8E%E5%BA%94%E7%94%A8%E6%8E%A2%E7%B4%A2-%E7%99%BD%E7%BE%A43.pdf?qq-pf-to=pcqq.c2c 阅读全文
posted @ 2013-09-25 18:02 时光独白 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 当一个xib文件包括多个ViewController的时候,需要针对不同的ViewController创建.h.m文件,默认xib关联的不是新创建的文件,需要设置关联才能拖动view打开xib选择一个ViewController,在Custom Class中设置class,如下图 阅读全文
posted @ 2013-09-25 09:13 时光独白 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: 解决办法:完全退出xcode再打开 阅读全文
posted @ 2013-09-24 17:54 时光独白 阅读(540) 评论(0) 推荐(0) 编辑
摘要: Storyboard.storyboard could not be opened. Could not read the archive.Please use a newer version of Xcode. Consider changing the document's Development Target to preserve compatibility.用低版本xcode打开高版本xcode下创建的项目时会出现这个错误。解决办法:1. 以源文件打开storyboard文件2. 把version改为1.03. 保存文件,在interface builder中打开这样就可以打 阅读全文
posted @ 2013-09-24 15:26 时光独白 阅读(407) 评论(0) 推荐(0) 编辑
摘要: Win7是Server,Mac是Client,VMware上运行Mac系统1、在VMware的Options菜单中选择Shared Folders选项2、选择Always enabled选项3、然后选择要在Win7系统上共享的文件夹路径名4、在Win7系统下将改文件夹设为共享5、进入MAC系统桌面右键点击Finder前往菜单Connectting to Server6、在连接服务器对话框中输入[smb://Windows主机的IP地址],其中smb是访问Windows共享文件夹所使用的协议名称7、连接到Windows主机之后会显示该主机所共享的文件夹,选择想要访问的一个即可8、这样再次打开Fi 阅读全文
posted @ 2013-09-23 17:58 时光独白 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 转自eseedo的博客 [微博]NYTimes Objective-C 编程风格指南。来源:https://github.com/NYTimes/objective-c-style-guide这篇指南总结了纽约时报iOS开发团队的编程风格。欢迎大家在github中提供建议和pull请求。简介:以下是形成本编程指南所涉及到的Apple官方文档。如果本文有未尽之处,可以参考以下链接:The Objective-C Programming LanguageCocoa Fundamentals GuideCoding Guidelines for CocoaiOS App Programming Gu 阅读全文
posted @ 2013-09-18 09:28 时光独白 阅读(205) 评论(0) 推荐(0) 编辑
摘要: C语言将字符串作为简单地字符数组处理,并且在数组最后添加尾部零字符作为结束标志。而Cocoa中的NSString则有很多内置方法,他们让字符串的处理变得简单很多1. 创建字符串 NSString的stringWithFormat:方法+(id) stringWithFormat:(NSString *) format, ...;//省略号表示这个方法可以接收多个以逗号隔开的其他参数,就像printf()和NSLog()一样 可以用如下方式创建一个新的字符串NSString *height; height=[NSString stringWithFormat: @"Your heigh 阅读全文
posted @ 2013-09-17 19:13 时光独白 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 1. 范围的作用第一个结构体是NSRange:typedef struct _NSRange{ unsigned int location; unsigned int length;}NSRange;这个结构体用来表示相关事物的范围,通常是字符串里的字符范围或数组里的元素范围,location字段存放该范围的起始位置,而length字段则是该范围内所含元素的个数。在字符串“Objective-C is a cool language”中,单词cool可以用location为17,length为4的范围来表示。也许由于location字段未被初始化,所以它的值可以是NSNotFound,... 阅读全文
posted @ 2013-09-17 17:55 时光独白 阅读(312) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页