Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wide Views from Nibs #19

Open
jeffmcfadden opened this issue Nov 2, 2011 · 2 comments
Open

Wide Views from Nibs #19

jeffmcfadden opened this issue Nov 2, 2011 · 2 comments

Comments

@jeffmcfadden
Copy link

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
Copy link
Author

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

@emilwojtaszek
Copy link
Member

use this method:

  • (id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil size:(CLViewSize)size;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants