views:

650

answers:

4

Hi,

The iPad programming guide says that the splitView's left pane is fixed to 320 points. But 320 pixels for my master view controller is too much. I would like to reduce it and give more space to detail view controller. Is it possible by anyway?

Edit: Link to the document which speaks about fixed width - http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/UserInterface/UserInterface.html#//apple_ref/doc/uid/TP40009370-CH3-SW1

Thanks and Regards, Raj

+2  A: 

No.


There are two private properties

@property(access,nonatomic) CGFloat masterColumnWidth;
@property(access,nonatomic) CGFloat leftColumnWidth; // both are the same!

but being private mean they can't be used for AppStore apps.

KennyTM
Thanks, but I am not going to use the private APIs, rather I would implement own split view controller . . .
Raj
A: 
Kames
I know that privates can be modified using categories like this one, but this is the second time I try it and getting the same error:"_OBJC_IVAR_$_UISplitViewController._masterColumnWidth", referenced from:_OBJC_IVAR_$_UISplitViewController._masterColumnWidth$non_lazy_ptr in UISplitViewController+myExt.o (maybe you meant: _OBJC_IVAR_$_UISplitViewController._masterColumnWidth$non_lazy_ptr) Symbol(s) not found. Collect2: ld returned 1 exit status
nacho4d
A: 

Why not try Matt Gemmell's excellent MGSplitViewController? It's open source, and is available on GitHub.

Gregor, Sweden

Gregor
Yeah Gregor, I ended up writing my own split view controller.
Raj
A: 

this code is work for me

[splitViewController setValue:[NSNumber numberWithFloat:200.0] forKey:@"_masterColumnWidth"];

priyanka
I am afraid that we will be changing the private properties in this case. Better not do it. Who knows, Apple might decide to change its class hierarchy?
Raj