数据库

摘要: +(NSArray *)findAll{ sqlite3 * db = [DB DBOpen]; //调用DB open方法 获取数据库指针 sqlite3_stmt * stmt;//镜像 copy出来的镜像 不影响sqlite里的内容 int result = sqlite3_prepare_v 阅读全文
posted @ 2016-03-29 17:52 窗外美景 阅读(135) 评论(0) 推荐(0)

报错

摘要: 报错如下reason: '-[UITableViewCell setFrame:]: unrecognized selector sent to instance 0x7aedd930'查看是否是在类方法里面没有用self 而是用了uitabalview uitabbar 这些 阅读全文
posted @ 2016-01-09 20:30 窗外美景 阅读(107) 评论(0) 推荐(0)

图层与核心动画

摘要: 一、理解图层与UIView的关系1.UIView能显示在屏幕上,是因为里面有个图层,UIView的DrawRect方法,会将绘制的东西绘在图层上,当要显示的时候,将图层拷贝到屏幕上进行显示二、CALayer的基本属性1.尺寸(bounds)2.背影颜色(backgroundColor)3.位置(po... 阅读全文
posted @ 2015-12-05 11:11 窗外美景 阅读(149) 评论(0) 推荐(0)

手势

摘要: 给图片添加 "敲击手势"- (void)viewDidLoad { [super viewDidLoad]; // 1.创建一个 "敲击手势" 对象 UITapGestureRecognizer *tapGest = [[UITapGestureRecognizer alloc] ... 阅读全文
posted @ 2015-12-05 11:01 窗外美景 阅读(135) 评论(0) 推荐(0)

触摸事件

摘要: 新建一个uiView 设置类名-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ //NSLog(@"%s",__func__); // 获取当前触摸点的UITouch对象 UITouch *touch ... 阅读全文
posted @ 2015-12-05 10:33 窗外美景 阅读(110) 评论(0) 推荐(0)