Steve Moser
Steve Moser

Reputation: 7807

Strange bug when subclassing UISplitViewController

When I subclass UISplitViewController and set it's viewControllers property everything is fine. However once I add this single line to my subclass the master view controller grows to the size of a detail view and overlaps my detail view.

@property (nonatomic,retain) MMMasterViewController* masterViewController;

Anyone know whats going on here?

Upvotes: 0

Views: 421

Answers (2)

Steve Moser
Steve Moser

Reputation: 7807

So I changed the name of my property and it worked.

Why?

It most likely was overriding a private property of UISplitViewController.

Upvotes: 3

David C. Nelson
David C. Nelson

Reputation: 60

The private property name for the details view seems to be detailViewController. I used that name and my details view moved under the master view.

It seems best to avoid using either of these property names in a subclass.

Upvotes: 1

Related Questions