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

浙公网安备 33010602011771号