testViewController inherited UIViewController, but the following code is inherited in UIVIEW class, but instead of inheriting UIVIEWCONTRLLER Once executed the following code to [self presentModalViewController: _setViewController animated: YES];. would be wrong. Ask how it can be switched to another UIVIEWController years. Anxious to ask! ! ! ! ! ! !
testViewController * _setViewController = [[testViewController alloc] init];
[Self presentModalViewController: _setViewController animated: YES];
[_setViewController Release];
[Self dismissModalViewControllerAnimated: YES];
Reply:
Nobody's!
Reply:
Error output?
Reply:
Since the code is in the succession uiview class, of course, no matter
presentModalViewController method
So in your view need to add a delegate, the delegate pointing to your viewcontroller (must inherit uiviewcontroller), then [delegate presentModalViewController: _setViewController animated: YES]; so that it can
Reply:
Switch to another UIVIEWController Lane?
Do you want to get to the Controller, then pass the value can be a simple method is to write a pointer attached to the past
Reply:
presentModalViewController belong UINavigationController instance methods. You need to modify your code
This one:
[Self presentModalViewController: _setViewController animated: YES];
Changed
[Self.navigationController presentModalViewController: _setViewController animated: YES];
Then back
[Self dismissModalViewControllerAnimated: YES];
Deleted, try
No comments:
Post a Comment