fix pageControl position

This commit is contained in:
isaced 2014-12-25 17:08:25 +08:00
parent 366275e5aa
commit 631fdbd85f
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ static const CGFloat EmojiFontSize = 32;
self.pageControl.backgroundColor = [UIColor clearColor];
self.pageControl.numberOfPages = numOfPage;
CGSize pageControlSize = [self.pageControl sizeForNumberOfPages:numOfPage];
self.pageControl.frame = CGRectMake(CGRectGetMidX(frame) - pageControlSize.width,
self.pageControl.frame = CGRectMake(CGRectGetMidX(frame) - (pageControlSize.width / 2),
CGRectGetHeight(frame) - pageControlSize.height + 5,
pageControlSize.width,
pageControlSize.height);