40media should we need to release viewcontroller's object after pushing into navigation controller?


should we need to release viewcontroller's object after pushing into navigation controller?



here is sample code.

if(MyPageViewControllerObj==nil) 	{ 		MyPageViewController *vController = [[MyPageViewController alloc] initWithNibName:@"MyPageView" bundle:[NSBundle mainBundle]]; 		self.MyPageViewControllerObj=vController; 		[vController release]; 		noOfWrongAnswers=0; 		noOfRightAnswers=0; 	} 	MyPageViewControllerObj.sessionid=sessionid; 	MyPageViewControllerObj.categoryID = categoryId; 	MyPageViewControllerObj.flashcardIdforcount = flashcardid; 	MyPageViewControllerObj.categoryType=categoryType; 	MyPageViewControllerObj.indexViewControllerobj=self; 	[self.navigationController pushViewController:MyPageViewControllerObj animated:YES]; 

do i need to write this line **[MyPageViewControllerObj release]**

after pushing it into navigation controller.and also in dealloc method...




UIWebView and Javascript from button

1:



sectioned UITableView
Yes, you should to release your MyPageViewControllerObj as the UINavigationController retains it.


Cocoa-touch - implementation files?
It does not need to be in the -dealloc method..
Run javascript without UIWebView possible?


Creating a Navigation View inside the standard Flipside view?


58 out of 100 based on 33 user ratings 108 reviews