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

Is it possible to change width of the view? #6

Open
olutsenko opened this issue May 18, 2012 · 4 comments
Open

Is it possible to change width of the view? #6

olutsenko opened this issue May 18, 2012 · 4 comments

Comments

@olutsenko
Copy link

I am trying to change width of the control, to make it as wide as screen width:

DDPageControl *pageControl = [[DDPageControl alloc] init];
pageControl.numberOfPages = 4;
pageControl.currentPage = 0;
pageControl.indicatorDiameter = 5.0;
pageControl.frame = CGRectMake(0.0, 300.0, 320.0, 36.0);

This doesn't work for me, the width always equals to 100.0

How can I change this parameter?

Thanks.

@fictorial
Copy link

I just hit this same issue... I want this control to be full-width so tapping on it will paginate prev/next. It's kind of useful to allow that.

My workaround was to remove the - (void)setFrame:(CGRect)aFrame and - (void)setBounds:(CGRect)aBounds in DDPageControl.m

@epologee
Copy link

This is the one issue that prevents DDPageControl from being a drop-in replacement. Indeed removing the two setters resolved the issue for me.

@WEARE
Copy link

WEARE commented Jul 16, 2012

+1 for this. I'm not sure when having the control set it's own width might be useful, but it should be an opt-in anyway to allow for DDPageControl being a drop-in replacement on UIPageControl.

@liushuaikobe
Copy link

+1 for this. Are there some solution without changing the code to this issue?

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

5 participants