Pop View Controller

In my iPhone app Hip Pocket AAR Writer I have a preview UIView that shows the assembled After Action Report.  From the preview view the user is given the option to delete the current AAR effectively wiping the slate clean.  At first deleting the AAR put a kink in the app’s workflow. Then it dawned on me. I’ve got the navigationController already. What if I asked it to pop the view?

Voila.

  1. [self.navigationController popViewControllerAnimated:YES];
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s