I am using this code to move back to tableview but it gives error
but when i use
[self.navigationController pushViewControllerAnimated:YES];
it works but not working with popViewController
CategoriesList*targetController=[[CategoriesList alloc]init];
[self.navigationController popViewControllerAnimated:YES];
You got the correct method signature if all you want is to pop the view controller at top of the stack. What is the error? Try this then:
From docs:
http://developer.apple.com/library/ios/#documentation/uikit/reference/UINavigationController_Class/Reference/Reference.html