Joe
Joe

Reputation: 1354

How do i load a new xib on an orientation change on the ipad?

How do i load a new xib on an orientation change on the ipad?

Upvotes: 0

Views: 589

Answers (1)

Jerry
Jerry

Reputation: 4480

In the rotation method, like willAnimateRotationToInterfaceOrientation:duration, you can call initWithNibName:bundle on a UIViewController or something like:

[[NSBundle mainBundle] loadNibNamed:name owner:self options:nil];

Upvotes: 1

Related Questions