09 2014 档案

摘要:NSNotificationCenter消息通信机制介绍(KVO)作用:NSNotificationCenter是专门供程序中不同类间的消息通信而设置的.注册通知:即要在什么地方接受消息[[NSNotificationCenterdefaultCenter]addObserver:selfselec... 阅读全文
posted @ 2014-09-07 09:35 褚鹏 阅读(110) 评论(0) 推荐(0)
摘要:>UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)]; //初始化textfield并设置位置及大小text.borderStyle = UITextBorderStyleRounded... 阅读全文
posted @ 2014-09-07 08:53 褚鹏 阅读(208) 评论(0) 推荐(0)
摘要:IOS的数据库相关操作 阅读全文
posted @ 2014-09-05 09:35 褚鹏 阅读(115) 评论(0) 推荐(0)
摘要:1 static NoteDAO *sharedManager = nil; 2 + (NoteDAO*)sharedManager { 3 static dispatch_once_t once; 4 dispatch_once(&once, ^{ 5 NSDa... 阅读全文
posted @ 2014-09-05 09:31 褚鹏 阅读(117) 评论(0) 推荐(0)
摘要:NSURL其实就是我们所说的网址,之所以不用NSString类型,是因为其内容包含很多请求参数。NSURL的初始化操作:1 NSURL *url = [NSURL URLWithString:@"http://www.baidu.com"];NSURL根据文件名和文件后缀获得程序的路径:1 NSUR... 阅读全文
posted @ 2014-09-04 16:18 褚鹏 阅读(148) 评论(0) 推荐(0)
摘要:有关于UIAlertView,警告框控件示例:1 UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"用户未登录"2 ... 阅读全文
posted @ 2014-09-04 15:52 褚鹏 阅读(107) 评论(0) 推荐(0)