iphone 使用popViewController如何避免内存泄露

本文摘自: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 on 2011-11-07 23:20  wtq  阅读(1575)  评论(0编辑  收藏  举报