07 2014 档案

摘要:把当前屏幕作为获取成为图片- (UIImage *)rn_screenshot { UIGraphicsBeginImageContext(self.bounds.size); [self.layer renderInContext:UIGraphicsGetCurrentContext()]; U... 阅读全文
posted @ 2014-07-27 21:53 shidaying 阅读(127) 评论(0) 推荐(0)
摘要:self.navigationController.navigationBar.barTintColor = RGB(55, 46, 41); 阅读全文
posted @ 2014-07-25 17:55 shidaying 阅读(146) 评论(0) 推荐(0)
摘要:转自 http://blog.csdn.net/zhibudefeng/article/details/7795946//file文件操作NSFileManager常见的NSFileManager文件的方法:-(BOOL)contentsAtPath:path 从文件中读取数据-(BO... 阅读全文
posted @ 2014-07-17 18:14 shidaying 阅读(716) 评论(0) 推荐(0)
摘要:一,设置亮度[[UIScreen mainScreen] setBrightness:0.5];//0.0~1.0二,设置声音1,添加 MediaPlayer.framework 框架2,在需要的文件中导入头文件,#import 3,[[MPMusicPlayerController applica... 阅读全文
posted @ 2014-07-16 14:32 shidaying 阅读(993) 评论(2) 推荐(0)
摘要:能够滚动的控件都不会响应touchesBegin,touchesEnd等方法,这就需要对这个类进行封装以UITextView为例1,创建CustomTextView类,继承与UITextView2,在CustomTextView.m文件中重写touchesBegin,touchesEnd等方法3,代... 阅读全文
posted @ 2014-07-11 17:07 shidaying 阅读(344) 评论(0) 推荐(0)