0

I am making a tab bar application. In AppDelegate in method -(void)applicationDidBecomeActive I have a string of code:

[self.window addSubview:pass.view];

So every time when app becomes active, pass.view appears. And when user makes all work in this view, I want to close this view and return to AppDelegate or any tab in the app. How do I return from pass.view ?

SmartTree
  • 1,381
  • 3
  • 21
  • 40

1 Answers1

1

Since all you are doing is laying an UIView in top of the window, all you have to do is remove it to go "back" you can use removeFromSuperview method to achieve this.

[pass.view removeFromSuperview];
Oscar Gomez
  • 18,436
  • 13
  • 85
  • 118