2011年8月6日

用NSBUNDLE自定义一个重复使用的TABLEVIEWCELL

摘要: ProductInfoTableViewCell *cell = (ProductInfoTableViewCell* )[tableView dequeueReusableCellWithIdentifier:kProductCellID]; //UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kProd... 阅读全文

posted @ 2011-08-06 20:41 Cheney Shen 阅读(303) 评论(0) 推荐(0) 编辑

iPhone delegate 两界面传递数据(转)

摘要: 在IOS里两个UIView窗口之间传递参数方法有很多,比如1.使用SharedApplication,定义一个变量来传递.2.使用文件,或者NSUserdefault来传递3.通过一个单例的class来传递4.通过Delegate来传递。前面3种方法,暂且不说,这次主要学习如何使用通过Delegate的方法来在不同的UIView里传递数据 。窗口1窗口2窗口2的结果传递给窗口11.首先定义个一委托... 阅读全文

posted @ 2011-08-06 20:33 Cheney Shen 阅读(730) 评论(0) 推荐(0) 编辑

NSLog打印当前文件,当前函数,当前行数

摘要: NSLog(@”%s, %s, %d”, __FILE__, __FUNCTION__, __LINE__); 阅读全文

posted @ 2011-08-06 20:02 Cheney Shen 阅读(455) 评论(0) 推荐(0) 编辑

导航