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
193
votes
17 answers

How can I change the color of pagination dots of UIPageControl?

I am developing an application in which I want to change either color or image of UIPageControl pagination dots. How can I change it? Is it possible to customize UIpageControl on above scenario?
Tirth
  • 7,801
  • 9
  • 55
  • 88
61
votes
7 answers

How to put the UIPageControl element on top of the sliding pages within a UIPageViewController?

Regarding to this tutorial by AppCoda about how to implement a app with UIPageViewController I'd like to use a custom page control element on top of the pages instead of at the bottom. When I just put a page control element on top of the single…
sn3ek
  • 1,929
  • 3
  • 22
  • 32
57
votes
5 answers

Hide dots from UIPageViewController

I would like to do to a pretty simple thing. Just remove all the dots, and the bar on the bottom of the UIPageViewController. This is the setup: I have a custom view controller which has UIPageViewController *pageController I display it like…
Stefan Salatic
  • 4,513
  • 3
  • 22
  • 30
57
votes
5 answers

Programmatically Linking UIPageControl to UIScrollView

I am making a simple slideshow view within my app. I'd like to link my UIPageControl to my UIScrollView. This shouldn't be too difficult, but I haven't been able to find a simple solution anywhere. Below is my code. HelpViewController.h #import…
Dan Carew
  • 687
  • 1
  • 5
  • 6
49
votes
13 answers

How to add PageControl inside UICollectionView Image Scrolling

I have UICollectionView Horizontal Image listing code. I want to add PageControl when scrolling images will shows, I added pagecontrol selector and IBOutlet but how can I integrate it between UICollecitonView? My code is below: class …
SwiftDeveloper
  • 7,244
  • 14
  • 56
  • 85
48
votes
2 answers

how do i use a UIPageControl?

I am making an app where 10 images can be scrolled through using a page control. The problem is that I have absolutely no idea how to use a page control. Any help at all is appreciated.
snrbrn
  • 491
  • 1
  • 4
  • 3
48
votes
4 answers

How can I change the page on clicking the dots of UIPageControl

Here I have a pagecontrol which works good but on clicking on dot it doesn't change the page so please help in the function of changepage: - (void)viewDidLoad { scrollView=[[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, 320, 420)]; …
Vivek Sehrawat
  • 6,560
  • 2
  • 26
  • 39
46
votes
5 answers

How to create a Scroll View with a page control using swift?

I am trying to create a Page View controller with numbers of view. I want a simple code sample that will use UIPageViewController.
LC 웃
  • 18,888
  • 9
  • 57
  • 72
40
votes
12 answers

PageViewController current page index in Swift

I want to get current index of a pageViewController, I don't know how I get the visible pages index. func pageViewController(pageViewController: UIPageViewController, didFinishAnimating finished: Bool,previousViewControllers:…
LeNI
  • 1,184
  • 2
  • 10
  • 19
39
votes
11 answers

UICollectionView: current index path for page control

I'm using a UICollectionView with a flow layout to show a list of cells, I also have a page control to indicate current page, but there seems to be no way to get current index path, I know I can get visible cells: UICollectionView current visible…
hzxu
  • 5,753
  • 11
  • 60
  • 95
37
votes
6 answers

Increase the size of the indicator in UIPageViewController's UIPageControl

Is it possible to Increase the size of the indicator in UIPageViewController? I have this: And my requirement is this:
Anurag Sharma
  • 4,276
  • 2
  • 28
  • 44
29
votes
3 answers

Navigate to specific page in scrollView with paging, programmatically

How do I navigate to a specific page programmatically. Basically I have an app with a scrollView populated with a bunch of subviews (tableViews in this case). When clicking on a subview it zooms in and the user can edit and navigate the table,…
Glitch
  • 619
  • 2
  • 7
  • 16
28
votes
10 answers

Is there a way to change page indicator dots color

I am newbie to iphone programming, I am trying to develop an app which uses page control. My view's background color is white and page controllers default one is also white, which makes page control invisible on my view so I have changed the back…
iPhone Programmer
  • 283
  • 1
  • 4
  • 4
26
votes
4 answers

How do I implement UIPageControl in Swift

Ok so I'm struggling here and haven't been able to find a working solution. I've been self learning Swift without Objective C experience (I know, I know). In my app, I have my main UIViewController, a subview that is transparent but slides in from…
Ross Isdaner
  • 269
  • 1
  • 3
  • 3
22
votes
13 answers

Add border for dots in UIPageControl

I want to add border color for dots in UIPageControl. Here is the small picture of it: I am able to put second dot by configuring it from XCode but I cannot make the first and third circles' inside empty. Is there a simple way to achieve…
Emrah Akgül
  • 630
  • 2
  • 7
  • 18
1
2 3
49 50