- There is a
viewController
here. In itsaddChildViewController
function, I add atableViewController
as its child. Now, what we can see is the
viewController's
, but I want to show thetableViewController's tableView
. I achieve this by:[viewController presentViewController:tableViewController animate:YES xxx:xxx]
What I do in the 2nd step trigger some error:
“Application tried to present modally an active controller.”
So the question is:
If I want to show a view of the
childViewController
of aviewController
, couldn't I usepresentViewController
function?If so, why?
How could I solve the problem?
Thanks a lot for reading and answering. I've hunt for the reason for days.