摘要: #pragma mark - 聊天气泡的自适应- (void)bubblesToCalculate{ CGRect rect = [_field.text boundingRectWithSize:CGSizeMake(180, MAXFLOAT) options:NSStringDrawing... 阅读全文
posted @ 2015-03-11 21:46 易林夕 阅读(164) 评论(0) 推荐(0) 编辑
摘要: [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(KeyBoardWillChange:) name:UIKeyboardWillChangeFrameNotification object:nil];/... 阅读全文
posted @ 2015-03-11 21:41 易林夕 阅读(217) 评论(0) 推荐(0) 编辑
摘要: dispatch_async( dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0) , ^{ NSString *cachPath = [NSSearchPathF... 阅读全文
posted @ 2015-03-11 21:37 易林夕 阅读(429) 评论(0) 推荐(0) 编辑
摘要: - (void)VersionUpdate{ NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; CFShow(infoDictionary); NSString *app_Version = [inf... 阅读全文
posted @ 2015-03-11 21:34 易林夕 阅读(775) 评论(0) 推荐(0) 编辑
摘要: 一、字符串字符串是String类型的数据,用双引号""包住文字内容 let website = "http://www.wendingding.com"1.字符串的常见操作(1)用加号 + 做字符串拼接let scheme = "http://"let path = “www.wendingding... 阅读全文
posted @ 2015-03-11 19:49 易林夕 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 只需要点击键盘的 return键 即可- (IBAction)nameTextField_didendonexist:(id)sender{ [self.pswbecomeFirstResponder];}- (IBAction)pawTextField_didendonexist:(id)sen... 阅读全文
posted @ 2015-02-05 22:37 易林夕 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 获取图片缓存1.导入 #import "SDImageCache.h"//把B单位转换为M[NSString stringWithFormat:@"%.2fM",(double)[[SDImageCache sharedImageCache] getSize]/1000/1000];清除图片缓存[[... 阅读全文
posted @ 2015-02-05 21:59 易林夕 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Object C 语言基础第一节总括 这一节是对Objective-C(以后简称OC)的简要介绍,目的是使读者对OC有一个概括的认识。1.面象的读者 在阅读本文之前,应具备使用与C类似的编程语言(如C,C++,JAVA)的一些经验,同时熟悉面向对象编程。2.OC简介 OC是以SmallTal... 阅读全文
posted @ 2015-02-04 11:06 易林夕 阅读(812) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-02-03 22:47 易林夕 阅读(2) 评论(0) 推荐(0) 编辑