开发者

How to create customize View Controller?

开发者 https://www.devze.com 2023-04-01 01:00 出处:网络
How can we create a new CustomizeViewController like UIViewController, UITableViewController, an开发者_JAVA技巧d etc...

How can we create a new CustomizeViewController like UIViewController, UITableViewController, an开发者_JAVA技巧d etc...

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


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


How can we create a new CustomizeViewController like UIViewController

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

精彩评论

暂无评论...
验证码 换一张
取 消