Open killer1loop opened 11 years ago
I'm implementing DD Page Control, but I have an issue regarding hiding the control when only one page is displayed. I have imported the DDPageControl class, and added to the main view controller the following code:
int numberOfPages = 1; dotsControl = [[DDPageControl alloc] init] ; [dotsControl setHidesForSinglePage:YES]; [dotsControl setCenter: CGPointMake(self.view.center.x, self.view.bounds.size.height-20.0f)]; [dotsControl setAutoresizingMask:UIViewAutoresizingFlexibleBottomMargin]; [dotsControl setNumberOfPages: numberOfPages]; [dotsControl setCurrentPage:0] ; [dotsControl setDefersCurrentPageDisplay: YES] ; [dotsControl setType: DDPageControlTypeOnFullOffEmpty] ; [dotsControl setOnColor: [UIColor colorWithRed:(250.0/255.0) green:(170.0/255.0) blue:(0.0/255.0) alpha:1.0]] ; [dotsControl setOffColor: [UIColor colorWithWhite: 0.7f alpha: 1.0f]] ; [dotsControl setIndicatorDiameter: 7.0f] ; [dotsControl setIndicatorSpace: 7.0f] ; [self.view insertSubview:dotsControl belowSubview:thumbnailControl];
but dots are always drawed also on views of only 1 page
I'm implementing DD Page Control, but I have an issue regarding hiding the control when only one page is displayed. I have imported the DDPageControl class, and added to the main view controller the following code:
but dots are always drawed also on views of only 1 page