appunite / CLCascade

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

CLViewSizeWider help #24

Open justinamberson opened 12 years ago

justinamberson commented 12 years ago

In a subclass of CLViewController, I've imitated the CLWebViewController -init methods and inserted

    _viewSize = CLViewSizeWider;

into the if (self) code block. However, when pushing this view onto the stack, it's still half sized. What is it that I'm doing wrong? This view is also loaded from a nib, fwiw, so is there a special consideration for this case? I've also tried putting the _viewSize variable in -viewDidLoad to no avail.

justinamberson commented 12 years ago

It looks like it has something to do with loading from a nib. I've just created a generic CLViewController class and used the initWithSize:CLViewSizeWider method, and it works fine. Loading a nib creates the smaller size view, and I'm not sure why.

jeffmcfadden commented 12 years ago

I had the same issue. If you dig in you'll find that basically when you load from a nib the size is ignored.

justinamberson commented 12 years ago

Thanks for taking a look. I tried overriding a bunch of the nib related methods and nothing ever worked. I finally gave up and just resorted to laying out my views in code, even though it's a little harder to get autorotation struts and stretches worked out. I can't figure out a fix

jeffmcfadden commented 12 years ago

I ended up doing the same thing and had all around better luck with the lib.