摘要: 1、基于框架FMDatabase。2、连接类#import<Foundation/Foundation.h>#import"FMDatabase.h"@interfaceDbHelper:NSObject{FMDatabase*db;}-(BOOL)initDatabase;-(void)closeDatabase;-(FMDatabase*)getDatabase;@end#import"DbHelper.h"#defineDB_NAME@"menu.db"@implementationDbHelper-(BOOL)in 阅读全文
posted @ 2011-10-06 11:53 威风剑 阅读(742) 评论(0) 推荐(0) 编辑
摘要: 1、动态创建1btnfont=[UIButtonbuttonWithType:UIButtonTypeRoundedRect];2[btnfontsetFrame:CGRectMake(100,10,120,40)];3[btnfontaddTarget:selfaction:nilforControlEvents:UIControlEventTouchUpInside];4[btnfontsetTitle:@"字体"forState:UIControlStateNormal];5btnfont.backgroundColor=[UIColorclearColor];6[s 阅读全文
posted @ 2011-10-06 10:37 威风剑 阅读(543) 评论(0) 推荐(1) 编辑