Questions tagged [uipagecontrol]

The UIPageControl class is used in iOS to to create and manage page controls.

A page control is a succession of dots centered in the control. Each dot corresponds to a page in the application’s document (or other data-model entity), with the white dot indicating the currently viewed page.

When a user taps a page control to move to the next or previous page, the control sends the UIControlEventValueChanged event for handling by the delegate. The delegate can then evaluate the currentPage property to determine the page to display. The page control advances only one page in either direction.

UIPageControl Class Reference

748 questions
20
votes
5 answers

How to connect UIPageControl to UICollectionView (Swift)

I'm currently using a UICollectionView to display 3 images (each image spans the entire cell). I also have a UIPageControl that I placed on top of the UICollectionView. What I want to happen is to have the UIPageControl show the number of images…
kbunarjo
  • 1,277
  • 2
  • 11
  • 27
19
votes
14 answers

How to change position of UIPageControl in iOS >=8.0?

I have a simple UIPageViewController which displays the default UIPageControl at the bottom of the pages. I wonder if it's possible to modify the position of the UIPageControl, e.g. to be on top of the screen instead of the bottom. I've been looking…
Nguyen Thu
  • 193
  • 1
  • 1
  • 4
19
votes
8 answers

UIPageControl - How to make the background transparent?

I am using UIPageControl and trying to make the background transparent. UIPageControl *pageControl = [UIPageControl appearance]; pageControl.pageIndicatorTintColor = [UIColor lightGrayColor]; pageControl.currentPageIndicatorTintColor = [UIColor…
sselvan
  • 291
  • 1
  • 2
  • 7
17
votes
5 answers

Creating a Vertical UIPageControl

Anyone have an idea how to create a vertical UIPageControl? I have a UIScrollView with pagination enabled and I would like to have the UIPageControl sit on the side and appear vertically instead of horizontally. Thank you in advance...
MiMo
  • 4,905
  • 3
  • 22
  • 23
17
votes
6 answers

Swift/iOS8: Why are Page Control indicators not showing?

I am implementing a straightforward gallery view controller where the app displays a small range of full-screen images that the user can scroll through. I'm using UIPageViewController which I thought, should display the Page Control indicators…
Pompey Casmilus
  • 205
  • 2
  • 4
  • 7
16
votes
2 answers

UIPageController in conjuction with UIPageControl?

I have been using UIPageController to navigate between different controllers. Now I would like to add that dots at the bottom, so user can see on which controller he is at. That is achieved via UIPageControl. Is there easy way to combine those two?
MegaManX
  • 8,766
  • 12
  • 51
  • 83
15
votes
3 answers

Reduce dot size or padding to fit all page indicators on screen with UIPageControl

I have a UIPageControl that has 22 pages, therefore 22 page indicator dots. In landscape on iPhone they're all visible with plenty of space on the left and right, but in portrait there's not enough horizontal space to display all of the dots (at…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
13
votes
3 answers

UIPageControl is not Displayed

I use the following to display scrollview and pagecontrol scrollView=[[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 179)]; pageControl=[[UIPageControl alloc] initWithFrame:CGRectMake(0, 179, 320, 20)]; scrollView.delegate =…
Rony
  • 1,229
  • 4
  • 22
  • 42
12
votes
9 answers

How to Change the height of UIPageControl?

I am trying to change the height of UIPageControl how I can achieve that?
Ahmad Kayyali
  • 8,233
  • 13
  • 49
  • 83
12
votes
1 answer

Add PageControl programmatically

I would like to add a UIPageControl item programmatically to my view Controller. The self.view property contains a UIScrollView with the following properties: scrollView = [[UIScrollView alloc]…
Robin
  • 8,197
  • 11
  • 45
  • 74
11
votes
1 answer

How to implement Page control in iPhone app?

I'm a beginner in iPhone programming. I am preparing an iPhone app where I need something similar to UIPageControl. How can I implement a page control in an iPhone app?
Parth Bhatt
  • 19,381
  • 28
  • 133
  • 216
11
votes
5 answers

UIPageControl is not with UIImageView in IOS7

In my efforts to upgrade my application to support IOS7 I found out that UIPageControl doesn't support the UIImageView. They have changed it. I'm subclassing the UIPageControl in order to put custom circles instead the regular ones (attached an…
NDM
  • 944
  • 9
  • 30
10
votes
3 answers

UIPageControl and VoiceOver/accessibility

When using voice over on the springboard, when the UIPageControl at the bottom of the screen is selected, VoiceOver announces something like "Page 1 of 5. Adjustable." and the user can swipe up and down to change pages. In my app, I do not get the…
Dan Wesnor
  • 677
  • 7
  • 17
9
votes
4 answers

How to get a dotted page indicator for UICollectionView?

I have a UICollectionView that has the following settings, public CollectionView(CollectionLayout layout) : base(CGRect.Empty, layout) { RegisterClassForCell(typeof(CollectionCell), CollectionCell.CellIdentifier); CollectionViewLayout =…
Rizan Zaky
  • 4,230
  • 3
  • 25
  • 39
9
votes
5 answers

What's the best way of handling a UIPageControl that has so many dots they don't all fit on the screen

I have a UIPageControl in my application that looks perfectly fine with around 10 pages (dots), it's possible however for the user to add many different views, and so the number of dots could become say 30. When this happens the dots just disappear…
BinaryGuy
  • 1,246
  • 1
  • 15
  • 29
1
2
3
49 50