上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
  2013年4月28日
摘要: 1、分配内存2、初始化Java or C++ 直接调用构造函数 阅读全文
posted @ 2013-04-28 13:19 tx天翔 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1、用nil表示空对象2、与NULL的区别: nil是个对象,可以调用方法,不会crash NULL是个值 阅读全文
posted @ 2013-04-28 13:16 tx天翔 阅读(156) 评论(0) 推荐(0) 编辑
  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) 编辑
  2012年8月21日
摘要: http://stackoverflow.com/questions/6327448/semantic-issue-propertys-synthesized-getter-follows-cocoa-naming-convention-foYou take ownership of an object if you create it using a method whose name begins with “alloc”, “new”, “copy”, or “mutableCopy”. 阅读全文
posted @ 2012-08-21 15:17 tx天翔 阅读(931) 评论(0) 推荐(0) 编辑
  2012年8月19日
摘要: Code: UIButton *btnSignOn = [UIButtonbuttonWithType:UIButtonTypeCustom]; btnSignOn.frame = CGRectMake(100, 100, 150, 150); btnSignOn.center = CGPointMake(175, 175); [btnSignOn addTarget:selfaction:@selector(buttonSignOn:) forControlEvents:UIControlEventTouchUpInside]; btnSignOn.backgroundColo... 阅读全文
posted @ 2012-08-19 19:16 tx天翔 阅读(1456) 评论(0) 推荐(0) 编辑
  2012年8月16日
摘要: 1、NSAutoReleasePool使用中drain和release的区别; 阅读全文
posted @ 2012-08-16 09:27 tx天翔 阅读(145) 评论(0) 推荐(0) 编辑
  2012年8月11日
摘要: http://www.easytimetv.com 阅读全文
posted @ 2012-08-11 15:57 tx天翔 阅读(460) 评论(0) 推荐(0) 编辑
摘要: Mac 系统已经自带了字典程序 Dictionary,且和自家 Safari、Mail、SpotLight 等程序高度整合。遗憾的是英英字典,国人还是喜欢英汉汉英互译的词典。能自行添加词典到系统的词典程序。需要软件辅助。DictUnifier 就是国人出品的一款词典转换软件,可以自动转换安装星际译王 (StarDict) 格式字典,自动添加到 Mac 自带字典程序。下面是词典添加步骤:1. 下载DictUnifier。链接:http://code.google.com/p/mac-dictionary-kit/downloads/list2. 下载StarDict格式字典:(本人下载的是后面标 阅读全文
posted @ 2012-08-11 15:57 tx天翔 阅读(5201) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页