I am building on XCode SDK 3.1.3 for iPhone. I am subclassing ABPersonViewController and presenting it as a modal view when user taps on a contact name in my iphone app. User can edit the address or change the ringtone and add it to their contact list as a new contact or update an existing contact.
MySubClassedPersonViewController *x = [[MySubClassedPersonViewController alloc] init];
...
...
// set controller properties
...
[self pushViewController:x animated:NO];
[x release];
[parentcontroller presentModalViewController:self animated:YES];
When the user sets the ringtone and hits the back button, the nav bar shows the title for the Address Book View but the actual view remains in the ringtone selection view. I think this doesn't happen in iPhone4.
I tried to override navigationBar: ShouldPopItem: and pop the view controller if the title is "Ringtones" but that displays a blank screen with the title. I tried popToViewController: but that pops the address book view as well and the back button disappears.
Expected: When the user hits back button from the ringtone selection view, the address book view should be displayed with a back button to go back to the starting page in my app.
Any help is appreciated.