2013年3月2日
摘要: 1、当创建UIViewController添加UITableView时,self.tableView =[[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];2、当创建UITableViewController时,需要改变UITableViewStyle时,使用self.tableView.style = UITableViewStyleGrouped;会出现错误查UITableViewController的SDK文档,发现:Table views can have one of two style 阅读全文
posted @ 2013-03-02 22:56 tx天翔 阅读(12335) 评论(0) 推荐(1) 编辑
摘要: 方法如下:-(UIView*) tableView:(UITableView*)tableView viewForHeaderInSection:(NSInteger)section {UIView*headerView =[[[UIView alloc] initWithFrame:CGRectMake(0,0, tableView.bounds.size.width,30)] autorelease];if(section == integerRepresentingYourSectionOfInterest)[headerView setBackgroundColor:[UIColor 阅读全文
posted @ 2013-03-02 15:15 tx天翔 阅读(1951) 评论(0) 推荐(0) 编辑
摘要: SQLite是一个开源的嵌入式关系数据库,它在2000年由D. Richard Hipp发布,它的减少应用程序管理数据的开销,SQLite可移植性好,很容易使用,很小,高效而且可靠。SQLite嵌入到使用它的应用程序中,它们共用相同的进程空间,而不是单独的一个进程。从外部看,它并不像一个RDBMS,但在进程内部,它却是完整的,自包含的数据库引擎。嵌入式数据库的一大好处就是在你的程序内部不需要网络配置,也不需要管理。因为客户端和服务器在同一进程空间运行。SQLite 的数据库权限只依赖于文件系统,没有用户帐户的概念。SQLite 有数据库级锁定,没有网络服务器。它需要的内存,其它开销很小,... 阅读全文
posted @ 2013-03-02 14:59 tx天翔 阅读(516) 评论(0) 推荐(0) 编辑