2012年2月20日
摘要: 先显示自定义的UITableViewCell类 1 2@interfaceTreeViewCell:UITableViewCell{3UIButton*btnExpand;//按钮:用于展开子节点4SELonExpand;//selector:点击“+”展开按钮时触发5TreeNode*treeNode;//每个单元格表示一个节点6UILabel*label;//标签:显示节点title7idowner;//表示onExpand方法委托给哪个对象8UIImageView*imgIcon;//图标9NSIndexPath*cellIndexPath;//该单元格对应的索引10}11... 阅读全文
posted @ 2012-02-20 18:47 wtq 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 问题:我调试代码到某一个函数的调用处,结果单步调试无法进入函数里头。 以下是代码:-(void)passValue:(NSArray *)secondNodesArray{ TreeViewCell *cell = (TreeViewCell*)[self.tableView cellForRowAtIndexPath:indexPathCopy]; [cell OnExpandCell]; }-(void)OnExpandCell{ [self Expand];}-(void)Expand{ NSLog(@"Expand"); if ([treeNode hasChil. 阅读全文
posted @ 2012-02-20 14:37 wtq 阅读(955) 评论(0) 推荐(0) 编辑