摘要: 在iPhone 3GS中,1个点=1个像素。点跟像素可以直接互换。在iPhone 4中,1个点=2个像素。iPhone 4和iPhone 3GS的屏幕尺寸实际上是一样的,都是3.5英寸。同样一个点,实际上看起来是一样的。只是iPhone 4在单位英寸上像素更多,看起来更细腻。这里的屏幕模式可以初步理... 阅读全文
posted @ 2015-03-17 16:22 浅忆0 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 首尾式 [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.0]; //要执行动画的代码 [UIView commitAnimations];block式 [UIView animateWithDurat... 阅读全文
posted @ 2015-03-17 14:19 浅忆0 阅读(104) 评论(0) 推荐(0) 编辑
摘要: /* Add an arc of a circle to the context's path, possibly preceded by a straight line segment. `(x, y)' is the center of the arc; `radius' is its radi... 阅读全文
posted @ 2015-03-17 11:10 浅忆0 阅读(264) 评论(0) 推荐(0) 编辑