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
6
votes
1 answer

How to programmatically set the current page for UIPageControl?

I have 3 "pages" (page 0, page 1, page 2) in a UIScrollView that are snapped to by finger swipes. There is a UIPageControl there too. The UIScrollView starts off presenting page 0. What I want to do is present page 3 FIRST sometimes. How can I do…
RexOnRoids
  • 14,002
  • 33
  • 96
  • 136
6
votes
1 answer

Xcode: How do I change UIPageControl value with swipe gesture?

I have a quick question I was hoping you guys could help me answer. Right now I have a UIPageControl in a storyboard which changes an image depending on what dot you are on, however, as of now you have to press on the dot to change through the…
6
votes
1 answer

Alternative way to load ViewControllers on a UIPageControl

In my project I'm using a UIPageControl as a container UIViewController for scrolling. I used this tutorial (using ARC and storyboards): http://www.wannabegeek.com/?p=168 and the source code: https://github.com/wannabegeek/PageViewController As you…
user2117204
6
votes
1 answer

Is there any way that I can manipulate the parent view controller so that the subviews will be underneath the UIPageControl?

I'm implementing horizontal scrolling in an app by making use of an UIPageViewController which I set the navigation property to 'Horizontal' and the Transistion Style to 'scroll'. Everything works fine, I can add some subviews that are presented…
6
votes
1 answer

UIPageControl doesn't properly react to taps

In my TestApp, I created a class "Carousel" which should let me create a swipe menu with a UIPageControl in an easy way (by simply creating an instance of the class Carousel). Carousel is a subclass of UIView At init, it creates an UIView,…
andreas
  • 7,844
  • 9
  • 51
  • 72
6
votes
2 answers

UITableViewController inside UIScrollView with Horizontal Paging

this is the situation: I need horizontal scrolling, and table views inside every page. This is something like news app, it should display news from different categories, when scrolled in one horizontal direction, and inside one category it should…
Dimmy3
  • 926
  • 2
  • 13
  • 25
6
votes
1 answer

iOS 5 Implementing a Page Controller with Storyboards in existing application

I have an application that needs to display a series of graphs (using Core Plot). I would like each of these graphs to be displayed in its own view preferably using a paged controller. I have 8 graphs. Can someone direct me to a resource that…
Jack Nutkins
  • 1,555
  • 5
  • 36
  • 71
5
votes
1 answer

ios : How to load images from URL to page control using scroll view

I'm new in iOS. Now I want to load view images from URL to page control using scroll view. When I run the program the first image is shown but when I try to slide to next image or I move to another page program is not responding. My guess is…
dagger24
  • 115
  • 1
  • 2
  • 6
5
votes
2 answers

front controller , Page controller?

what is the difference between front controller and page controller? which is the best?
software
  • 728
  • 6
  • 18
  • 39
5
votes
2 answers

Swipe to change views

Is the following easy to code? I have a tableview and when the user selects a cell a detail view is loaded. I want to allow the user to navigate throughout the items/detail-view representing the items in the tableview by left and right swipes,…
Luuk D. Jansen
  • 4,402
  • 8
  • 47
  • 90
5
votes
2 answers

Xcode - how to disable pagecontrol?

I have 2 views which the user can scroll between. I have page control working so I have the 2 dots at the bottom of the page which show the current page. I want to be able to disable this if the user changes a setting. I can't seem to find the code…
user157733
  • 569
  • 2
  • 12
  • 26
5
votes
4 answers

How to change borders of UIPageControl dots?

Changing the colours is pretty straightforward, but is it possible to change the border of all unselected dots? Ex: dot.layer.borderWidth = 0.5 dot.layer.borderColor = UIColor.blackColor()
vale
  • 1,376
  • 11
  • 25
5
votes
2 answers

Increase spacing between indicator dots of UIPageControl

So I am working on customizing the UIPageControl (which Apple really doesn't make easy) and I'm wondering if there's a way to increase/decrease space between the indicator dots. I've been using this code to get the UIPageControl var…
tbondwilkinson
  • 1,067
  • 2
  • 8
  • 16
5
votes
1 answer

Why is not updated currentPage indicator on UIPageControl?

I am using the following code to update the currentPage indicator in my app: pgcNotification.currentPage = 3; pgcNotification.numberOfPages = 4; Though, the indicator never changes and always stays in its first position.
5
votes
1 answer

UIPageViewController - Don't allow to move if no pages

In my app I do not want it to be possible to drag if there is no pages before and/or after. See the images below. I do not want it to be able to move if there is no pages before or after the current page. No matter how much you drag, I want it to…
ThomasGulli
  • 604
  • 1
  • 7
  • 20