开发者

Calling same ViewController Again and Again

I am having a UITableView Class.I am loading it again and again by 开发者_Python百科loading different Contents ever time on click of a cell. say my class is TEstviewController and i am calling it again in dedSelectRowAtIndexPath as by Allocating it and calling pushViewController..It is working very fine..I want to ASk is it the right Way ? The Problem is i Don't now how many subcategory a Main category has.and further a subcategory has.i have to dig deep till last subcategory....i can't fix the limit of view's


As long as you're releasing every new view as soon as you push it onto the navigation stack you should be fine. There's nothing wrong with instantiating multiple copies of the same object.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜