摘要: init:方法在init方法中实例化必要的对象(遵从LazyLoad思想)init方法中初始化ViewController本身 loadView:方法这是当没有正在使用nib视图页面,子类将会创建自己的自定义视图层。绝不能直接调用。如果手工维护views,必须重载重写该方法。当view需要被展示而它... 阅读全文
posted @ 2015-08-14 12:00 lisen_李森 阅读(862) 评论(0) 推荐(0) 编辑
摘要: 在iOS开发过程中,不管是做什么应用,都会碰到数据保存的问题。将数据保存到本地,能够让程序的运行更加流畅,不会出现让人厌恶的菊花形状,使得用户体验更好。下面介绍一下数据保存的方式:1.NSKeyedArchiver:采用归档的形式来保存数据,该数据对象需要遵守NSCoding协议,并且该对象对应的类... 阅读全文
posted @ 2015-08-14 10:14 lisen_李森 阅读(142) 评论(0) 推荐(0) 编辑
摘要: // NSDate —> NSString[MHShortCut dateToString:@"yyyy-MM-dd" date:[NSDate date]];// NSString -> NSDateNSDate *date = [MHShortCut stringToDate:@"yyyy-MM... 阅读全文
posted @ 2015-08-13 11:51 lisen_李森 阅读(233) 评论(0) 推荐(0) 编辑
摘要: if ( [self.delegate respondsToSelector:@selector(finishOp:)]) { [self.delegate finishOp:self.copyerlistAry];}// 从下往上数[self.navigationController popToV... 阅读全文
posted @ 2015-07-29 14:04 lisen_李森 阅读(121) 评论(0) 推荐(0) 编辑
摘要: [cpp] view plaincopy1.系统默认的颜色设置[cpp] view plaincopy//无色cell.selectionStyle=UITableViewCellSelectionStyleNone;//蓝色cell.selectionStyle=UITableViewCellSe... 阅读全文
posted @ 2015-07-29 09:38 lisen_李森 阅读(142) 评论(0) 推荐(0) 编辑
摘要: UI 常用方法总结之--- UITableView (不断更新中)UITableView : UIScrollView 1. 创建一个 UITableView 对象ITableView *tableView = [[UITableView alloc]initWithFrame:[[UIScreen... 阅读全文
posted @ 2015-07-08 13:31 lisen_李森 阅读(246) 评论(0) 推荐(0) 编辑
摘要: [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(textFiledEditChanged:) name:@"UITextFieldTextDidChangeNotification" object:se... 阅读全文
posted @ 2015-07-01 14:35 lisen_李森 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 发送通知: UILocalNotification *newNotification = [[UILocalNotification alloc] init]; if (newNotification) {//时区 newNotification.timeZone=[NSTimeZone de... 阅读全文
posted @ 2015-07-01 13:54 lisen_李森 阅读(111) 评论(0) 推荐(0) 编辑
摘要: AFHTTPRequestOperationManager*manager=[AFHTTPRequestOperationManagermanager];manager.securityPolicy=[AFSecurityPolicypolicyWithPinningMode:AFSSLPinnin... 阅读全文
posted @ 2015-02-25 16:54 lisen_李森 阅读(1419) 评论(0) 推荐(0) 编辑
摘要: @interface UIView : UIResponder/*** 通过一个frame来初始化一个UI控件*/- (id)initWithFrame:(CGRect)frame;// YES:能够跟用户进行交互@property(nonatomic,getter=isUserInteractio... 阅读全文
posted @ 2014-12-04 19:11 lisen_李森 阅读(111) 评论(0) 推荐(0) 编辑