2011年11月7日
摘要: 本文摘自:http://www.cocoachina.com/bbs/read.php?tid-59955.html在Pop的时候,会把你的ViewController的retainCount加1,Dismiss的时候,会减少相应的值UIViewController *controller = [[UIViewController alloc]initWithNib ......];[self popViewController:controller Animated:YES];[controller release]; 阅读全文
posted @ 2011-11-07 23:20 wtq 阅读(1569) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://www.cocoachina.com/bbs/read.php?tid-33152.htmla(tableview)pushviewcontrol到b,执行完c动作后[[self navigationController] popViewControllerAnimated:YES];返回a,但表格数据未刷新,调试发现未执行- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath请问有什么办法在popViewController 阅读全文
posted @ 2011-11-07 23:09 wtq 阅读(1446) 评论(0) 推荐(0) 编辑
摘要: 1,在viewDidLoad时,初始化label,代码如下:UILabel *labelcopy = [[UILabel alloc] initWithFrame:CGRectZero]; labelcopy.textColor = [UIColor redColor]; labelcopy.text = @"123455"; labelcopy.frame = CGRectMake(0,0, 100, 100); label = labelcopy; [self.view addSubview:label]; [labelcopy release]; 以上代码运行正常。但 阅读全文
posted @ 2011-11-07 16:43 wtq 阅读(390) 评论(0) 推荐(0) 编辑