摘要: 在IOS4上运行的应用程序对于每一个image资源要包括两个独立的文件。两种图片的命名如下:Standard: <ImageName><device_modifier>.<filename_extension>High resolution: <ImageName>@2x<device_modifier>.<filename_extension><device_modifier>是可选的可以是~ipad或者~iphone。(1)从应用程序中载入imagesUIImage类处理了载入高分辨率images的各种工作 阅读全文
posted @ 2012-04-01 14:48 姜萌芽 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 在ios中,有两种基本的drawing技术。一种就是使用原生的drawing技术。此技术包括Core Graphics和UIKit框架,支持2D drawing。另一种就是使用OpenGL ES,此支持2D和3D。1. Quartz在IOS中是native window server和drawing 技术的统称。2. Core Graphics 框架是Quartz的核心,提供了用来drawing content的主要接口。3. UIKit有Quartz的基本特征,提供了一些集中的graphics-reated 操作current transformation matrix(CTM)是一个数学矩 阅读全文
posted @ 2012-04-01 13:17 姜萌芽 阅读(485) 评论(0) 推荐(0) 编辑
摘要: There are issues in iPhone OS 2.x where the imageNamed: cache would not be cleared, even after a memory warning. At the same time +imageNamed: has gotten a lot of use not for the cache, but for the convenience, which has probably magnified the problem more than it should have been.On the speed front 阅读全文
posted @ 2012-03-30 18:05 姜萌芽 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: 比如 ARC 状态时候, retain release 等消息发送是不能使用的。看宏定义:没限定:- (BOOL)conformsToProtocol:(Protocol *)aProtocol;- (BOOL)respondsToSelector:(SEL)aSelector;有限定:- (id)retain NS_AUTOMATED_REFCOUNT_UNAVAILABLE;- (oneway void)release NS_AUTOMATED_REFCOUNT_UNAVAILABLE;- (id)autorelease NS_AUTOMATED_REFCOUNT_UNAVAILABLE; 阅读全文
posted @ 2012-03-27 18:03 姜萌芽 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: Using the correct data types for your variables helps to maximize the performance and portability of your programs. Data alignment specifies how data is laid out in memory. A data type’snatural alignmentspecifies the default alignment of values of that that type.Table 1lists the ANSI C scalar data t 阅读全文
posted @ 2012-03-18 15:53 姜萌芽 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 先贴些, 周末有空儿整理...didReceiveMemoryWarningpracticesAs you said, the controller's default implementation ofdidReceiveMemoryWarningreleases its view if it is 'safe to do so'. While it's not clear from Apple's documents what 'safe to do so' means, it is generally recognized as i 阅读全文
posted @ 2012-03-13 19:11 姜萌芽 阅读(1186) 评论(0) 推荐(0) 编辑
摘要: 项目开发的过程中,将已提交AppStore,并通过审核的项目单独建立一个目录,是个不错的习惯。但是 Copy 整个工程文件夹会将里面的svn管理文件同时copy出来, 这些管理文件通常情况下是隐藏的, 这些管理文件使你不能够通过 SVN 的 Add 和 Commit 命令成功成功地为该整个工程在 Server 上面建立目录。下面分步处理:1. 在桌面上建立一个新的文件夹,比如glee,将整个工程所在的文件夹 copy 到这个文件夹里面. (具体路径名字随意)。2. 打开 Mac 下的命令行工具 “终端”(Terminal),位于Application/Utilities下。 输入: cd... 阅读全文
posted @ 2011-12-10 13:36 姜萌芽 阅读(3950) 评论(0) 推荐(0) 编辑
摘要: 今天开了博客,本人将常驻于此了,哈哈。 阅读全文
posted @ 2011-12-01 18:33 姜萌芽 阅读(110) 评论(0) 推荐(0) 编辑