iOS about switching between uiviewcontroller
Two ways to switch Uiviewcontroller 1.NavigationController
Method one right into
1 secondviewcontroller* svc=[[secondviewcontroller Alloc]init];
2 [Self.navigationcontroller PUSHVIEWCONTROLLER:FVC Animated:yes];
Return to the previous
[Self.navigationcontroller Popviewcontrolleranimated:yes];
Another way to cut through the bottom
|
secondviewcontroller* Svc=[[secondviewcontroller Alloc]init];
[Self.navigationcontroller presentmodalviewcontroller:svc Animated:yes];
[Svc release]; |
Back to previous Uiviewcontroller
|
[Self.navigationcontroller Dismissmodalviewcontrolleranimated:yes]; |
2. If there is no navigation bar Navigationcontroller, you can also switch
|
secondviewcontroller* Svc=[[secondviewcontroller Alloc]init];
[Self presentmodalviewcontroller:svc animated:yes];
[Svc release]; |
Back to previous Uiviewcontroller
|
[Self dismissmodalviewcontrolleranimated:yes]; |
iOS about switching between uiviewcontroller