문제

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

도움이 되었습니까?

해결책

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.

다른 팁

Both ways are ok.You can use any one .

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top