CLCascade
CLCascade copied to clipboard
Wide Views from Nibs
How do you get a wide view to load from a Nib?
In CLViewController::loadView the view is set as Nib object 0. But the default viewSize property is CLViewSizeNormal, and it's a read only property, so you can't set it after the view has been pulled out of the nib.
Am I missing something or does this functionality not exist?
And yes, a solution is to subclass CLSegmentedView and override initWithCoder, but this seems lame.
use this method:
- (id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil size:(CLViewSize)size;