appunite / CLCascade

Twitter-like cascade UI library
http://appunite.com/
Other
504 stars 67 forks source link

Wide Views from Nibs #19

Open jeffmcfadden opened 12 years ago

jeffmcfadden commented 12 years ago

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?

jeffmcfadden commented 12 years ago

And yes, a solution is to subclass CLSegmentedView and override initWithCoder, but this seems lame.

emilwojtaszek commented 12 years ago

use this method: