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];