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

How to change the width of the middle table view ? #32

Open
ForrestMobile opened this issue Apr 17, 2012 · 1 comment
Open

How to change the width of the middle table view ? #32

ForrestMobile opened this issue Apr 17, 2012 · 1 comment

Comments

@ForrestMobile
Copy link

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,

@emilwojtaszek
Copy link
Member

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)

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