CLCascade icon indicating copy to clipboard operation
CLCascade copied to clipboard

How to change the width of the middle table view ?

Open ForrestMobile opened this issue 13 years ago • 1 comments

I want to check if easy to customize the width of the subclass of CLTableViewController ( which is the middle view of the demo ).

We have two types of width

// enums typedef enum { CLViewSizeNormal = 0, CLViewSizeWider = 1 } CLViewSize;

For CLViewSizeNormal, does the logic is to calculate the width ? and for the CLViewSizeWider, it will use all the left width.

So my question is how to simply customize the width ? Thanks,

ForrestMobile avatar Apr 17 '12 09:04 ForrestMobile

Everything what you want is in the example project. You can make your own subclass of CLViewController and change init method:

  • (id) init { self = [super init]; if (self) { _viewSize = CLViewSizeWider; } return self; }

But there is a catch, only last view controller can be in wider mode (the same as in Twitter App)

emilwojtaszek avatar Apr 18 '12 08:04 emilwojtaszek