Yes it is possible. Just create a new view using the view controller and instantiate this view in your class. Then in ibaction you can do some deletions and add subviews. This is just a quick and easy way, you can get more detailed information about how you will manage each view, etc.
Edit by query: In your class, you must create an instance of this interface in this interface:
MyClass *myClass; (make sure to alloc and init in the init or awakeFromNib method)
Then create an instance of the application delegate in ibaction as follows:
MyAppDelegate *myAppDelegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
And then you can do this to switch from one view to another:
[self removeFromSuperView]; (or self.view in case this is a view controller) [[myAppDelegate window] addSubview:myClass];
simplyharsh
source share