03 2015 档案

摘要:__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_NA,__MAC_NA,__IPHONE_2_0,__IPHONE_5_0); 意思是在Mac 上从来没有支持过,iOS2.0以上及iOS5.0以下的系统可用,但不建议使用.Apple有可能在ios5.0之后删除该函数.__O... 阅读全文
posted @ 2015-03-25 10:17 浅忆0 阅读(189) 评论(0) 推荐(0)
摘要:1.iPhone会为每一个应用程序生成一个私有目录,这个目录位于:/Users/***/Library/Developer/CoreSimulator/Devices/79D02154-BE58-4A15-A764-79619AFB92E1/data/Containers/Data/Applicat... 阅读全文
posted @ 2015-03-18 16:15 浅忆0 阅读(365) 评论(0) 推荐(0)
摘要:在iPhone 3GS中,1个点=1个像素。点跟像素可以直接互换。在iPhone 4中,1个点=2个像素。iPhone 4和iPhone 3GS的屏幕尺寸实际上是一样的,都是3.5英寸。同样一个点,实际上看起来是一样的。只是iPhone 4在单位英寸上像素更多,看起来更细腻。这里的屏幕模式可以初步理... 阅读全文
posted @ 2015-03-17 16:22 浅忆0 阅读(298) 评论(0) 推荐(0)
摘要:首尾式 [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.0]; //要执行动画的代码 [UIView commitAnimations];block式 [UIView animateWithDurat... 阅读全文
posted @ 2015-03-17 14:19 浅忆0 阅读(115) 评论(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 阅读(280) 评论(0) 推荐(0)
摘要:UIButton有很多种状态,它提供了一些便捷属性,可以直接获取当前状态下的文字、文字颜色、图片等@property(nonatomic,readonly,retain) NSString *currentTitle;@property(nonatomic,readonly,retain) UICo... 阅读全文
posted @ 2015-03-16 22:17 浅忆0 阅读(159) 评论(0) 推荐(0)
摘要:在iOS7中,状态栏默认情况下归控制器管理,比如状态栏的样式、状态栏的是否可见控制器通过重写以下方法来控制状态栏设置状态栏的样式 -(UIStatusBarStyle)preferredStatusBarStyle;其中UIStatusBarStyleLightContent是白色样式设置状态栏的可... 阅读全文
posted @ 2015-03-16 09:54 浅忆0 阅读(174) 评论(0) 推荐(0)
摘要:#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 bl... 阅读全文
posted @ 2015-03-05 22:16 浅忆0 阅读(22922) 评论(0) 推荐(2)