1

I would like to call a modal view controller from a controller inside a navigation controller..

I should do

[self presentModalViewController:<#(UIViewController *)#> animated:<#(BOOL)#>];

OR

[self.navigationController presentModalViewController:<#(UIViewController *)#> animated:<#(BOOL)#>];

Thanks in advance

geo
  • 1,781
  • 1
  • 18
  • 30
Dylan
  • 13
  • 2

2 Answers2

-1

You can use whichever one makes you happy, though calling it on the navigation controller seems to be a bit more in line with the overall flow of the app.

borrrden
  • 33,256
  • 8
  • 74
  • 109
-1

Both ways are ok.You can use any one .

Lithu T.V
  • 19,955
  • 12
  • 56
  • 101