随笔分类 -  iOS

该文被密码保护。
posted @ 2016-01-13 17:01 Totoro.Lee 阅读(8) 评论(0) 推荐(0)
摘要:TimeTool.m+ (void)convertTime:(double)time success:(void (^)(id date))success{ NSDateFormatter* formatter = [[NSDateFormatter alloc] init]; formatte... 阅读全文
posted @ 2015-12-31 17:13 Totoro.Lee 阅读(118) 评论(0) 推荐(0)
摘要:首先设置UITabBarController的代理为appdelegate如下:homeVC.delegate = self;然后在interface后面写上代理实现代理里面的- (BOOL)tabBarController:(UITabBarController *)tabBarControlle... 阅读全文
posted @ 2015-12-30 10:27 Totoro.Lee
摘要:Xcode本身带有编码常用的代码块可供使用,如下图例如 “if” 这个代码块的定义调用方法1.可以直接拖放带编辑区2.使用快捷键,键入 “if”, Xcode就会出现自动完成的提示用户也可以自定义自己常用的代码块:1.编写代码2.选择代码,在选择的代码上长按鼠标左键直至光标符号变成鼠标图案3.拖放到... 阅读全文
posted @ 2015-12-22 18:42 Totoro.Lee
摘要:#pragma mark - 添加手势隐藏键盘- (void)tabBackground{ UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapO... 阅读全文
posted @ 2015-12-12 09:53 Totoro.Lee 阅读(536) 评论(0) 推荐(0)
摘要:UITableView继承自UIScrollview,是苹果为我们封装好的一个基于scroll的控件。上面主要是一个个的UITableViewCell,可以让UITableViewCell响应一些点击事件,也可以在UITableViewCell中加入UITextField或者UITextView等子... 阅读全文
posted @ 2015-12-09 19:11 Totoro.Lee 阅读(176) 评论(0) 推荐(0)