jfalexvijay
jfalexvijay

Reputation: 3711

How to create customize View Controller?

How can we create a new CustomizeViewController like UIViewController, UITableViewController, and etc...

If anyone having some idea about this please share with us.

Upvotes: 0

Views: 158

Answers (2)

Maulik
Maulik

Reputation: 19418

How can we create a new CustomizeViewController like UIViewController

UIViewController *CustomizeViewController = [[UIViewController alloc] init];
CustomizeViewController.view = whateverViewYouHave;

Upvotes: 0

EmptyStack
EmptyStack

Reputation: 51374

You cannot create an view controller from scratch. If you want to create your own view controller, you have to subclass UIViewController like,

@interface CustomizedViewController : UIViewController

And later, if you want to create subclasses of CustomizedViewController, simply extend it,

@interface FurtherCustomizedViewController : CustomizeViewController

Upvotes: 2

Related Questions