user2134883
user2134883

Reputation: 255

Return to same view after pressing home button

When I am in someViewController, I press the iPhone home button and it takes me to the iPhone home screen. Then I re-enter my app by tapping its icon. It does not take me to the view where I left. Instead, it takes me to homeViewController which is first view of my app.

How do I make it so that the user will be returned to the view that they left, rather than the initial view controller?

Upvotes: 1

Views: 510

Answers (1)

Kaushal Bisht
Kaushal Bisht

Reputation: 486

Go to "info" in Xcode project and check into supported interface orientations. If its having Application does not run in background is YES then do it NO. It will then take you to the same controller from where you left. Have a look on the screen shot below

enter image description here

Upvotes: 2

Related Questions