摘要: insert 语句后面不要跟 where 等条件语句;update 才用得到。 阅读全文
posted @ 2013-12-11 23:30 ygm900 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 向sqlite数据库插入和读取图片数据 (for ios)假定数据库中存在表 test_table(name,image), 下面代码将图片文件test.png的二进制数据写到sqlite数据库:char *name = "test";NSString * nameString = [NSString stringWithCString:name encoding:NSUTF8StringEncoding];NSString * filePath = [[NSBundle mainBundle] pathForResource:nameString ofType:@&quo 阅读全文
posted @ 2013-12-11 22:26 ygm900 阅读(4130) 评论(0) 推荐(0) 编辑
摘要: 使用XCODE5.0,出现这个小错误。。。解决办法:选中你的XIB或storyboard,如下图再查看右边属性栏去掉最下边的Use Autolayout ,完成。转:http://blog.csdn.net/topbar/article/details/12345511 阅读全文
posted @ 2013-12-11 14:50 ygm900 阅读(1084) 评论(0) 推荐(0) 编辑
摘要: -(void)checkboxClick:(UIButton *)btn{btn.selected = !btn.selected;}- (void)viewDidLoad {UIButton *checkbox = [UIButton buttonWithType:UIButtonTypeCustom];CGRect checkboxRect = CGRectMake(135,150,36,36);[checkbox setFrame:checkboxRect];[checkbox setImage:[UIImage imageNamed:@"checkbox_off.png&qu 阅读全文
posted @ 2013-12-11 11:02 ygm900 阅读(15264) 评论(0) 推荐(2) 编辑
摘要: 输出BOOL值的方法:NSLog(@"%@",YES?@"YES":@"NO");%@输出字符串。NSLog(@"ifReadOnly value: %@" ,ifReadOnly?@"YES":@"NO"); 阅读全文
posted @ 2013-12-11 11:01 ygm900 阅读(2322) 评论(0) 推荐(0) 编辑