¡@

Home 

2014/10/15 ¤U¤È 10:04:38

iphone Programming Glossary: blueviewcontroller

View Controllers: How to switch between views programmatically?

http://stackoverflow.com/questions/910994/view-controllers-how-to-switch-between-views-programmatically

@class YellowViewController @interface SwitchViewController UIViewController IBOutlet BlueViewController blueViewController IBOutlet YellowViewController yellowViewController IBAction switchViews id sender @property nonatomic retain BlueViewController.. YellowViewController yellowViewController IBAction switchViews id sender @property nonatomic retain BlueViewController blueViewController @property nonatomic retain YellowViewController yellowViewController @end 1. remove yellow view and insert blue view IBAction.. yellowViewController @end 1. remove yellow view and insert blue view IBAction switchViews id sender if self.blueViewController.view.superview nil yellowViewController.view removeFromSuperview self.view insertSubview blueViewController.view atIndex..