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
9
votes
5 answers

How do you combine UIScrollview with UIPagecontrol to show different views?

I've searched and searched for a tutorial for this but none of them are what I'm looking for. I've tried Apple's sample but it is just colors and I don't know how to make it views. All I'm looking for is a screen that will page while showing the…
aggiesfan64
  • 101
  • 1
  • 1
  • 3
9
votes
2 answers

UIPageViewController and UIPageControl transparent background color - iOS

I'm making a tutorial when app launches for the first time and using UIPageViewController for that. Everything is working fine but the background color of UIPageViewController is not getting transparent. It's always black, as shown below: Here's…
9
votes
2 answers

Page count of UICollectionView with paging in iOS

Consider a UICollectionView with flow layout and paging enabled (by setting pagingEnabled to YES). What would be the simplest way of obtaining the total number of pages? And where would be the most appropriate place to update the total number of…
hpique
  • 119,096
  • 131
  • 338
  • 476
8
votes
2 answers

How to change UIPageControl dots

I've seen apps (e.g. meebo) that have different indicators on UIPageControls instead of the default white circles. is there an easy way to do this? I've read the docs for UIPageControls and it seems that there is no methods to replace the images.
user321130
8
votes
8 answers

Access the UIPageControl created by iOS6 UIPageViewController?

I'm using a UIPageViewController with Navigation set to Horizontal, Transition Style set to Scroll (in InterfaceBuilder), and no spine. Which gives me a lovely UIPageControl integrated. Now I want to be able to toggle whether it's displaying…
Kaolin Fire
  • 2,521
  • 28
  • 43
8
votes
2 answers

Swiping Images with Page Control in Iphone

I am trying to make practice app where i can scroll images with page control. I am able to scroll images and able to include the page control. But the problem i face is i am not able to interlink the two. Meaning to say when I scroll the images, the…
lakshmen
  • 28,346
  • 66
  • 178
  • 276
7
votes
2 answers

Detect UIPageControl page change

I want to Add a UIPageController inside UICollectionViewCell. I created a custom nib file with a collectionViewCell inside. Inside the cell I added a UIPageControl. @IBOutlet weak var pageControl: UIPageControl! override func awakeFromNib() { …
user567
  • 3,712
  • 9
  • 47
  • 80
7
votes
1 answer

UIPageViewController OR UIScrollView with Paging Enabled = YES

I've gotten a little confused for how I should implement below, I need to scroll between UIViews or UIViewControllers each one having different set of data do display. For example, 1st view has a UITableView, other only has a button, 3rd may again…
Vish_iOS
  • 280
  • 3
  • 17
7
votes
4 answers

Remove the page indicator from UIPageViewController

I am using a page view controller in an iOs app. How do I remove the dots from this controller? - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.dontShowChecked = NO; …
user1028028
  • 6,323
  • 9
  • 34
  • 59
7
votes
1 answer

UIPageViewController setViewControllers, UIPageControl not showing right current number

I'am using a UIPageViewController with horizontal scrolling... as long as the user scrolls, the UIPageControl works correctly, problem occurs when jumping programmatically to next or previous page [self.pageViewController setViewControllers:@[[self…
Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179
7
votes
3 answers

iOS UIPageControl HorizontalAlignment doesn't work

I've tried setting a UIPageControl frame to the full width of my screen and setting alignment in the Interface Builder to Horizontal: right but it remains as centred. "contentVerticalAlignment" is a UIControl property and there's no mention of…
Bbx
  • 3,184
  • 3
  • 22
  • 33
7
votes
2 answers

How to change the colour of the UIPageControl when used in ios 5 simulator

I am using the following code in my application :- In .h file @property (strong, nonatomic) IBOutlet UIPageControl *pageControl; and in .m file pageControl.currentPage = counting; counting is NSInteger. The application works fine but the…
vinay
  • 351
  • 1
  • 5
  • 16
6
votes
2 answers

UIPageControl Dot Size for current page

I am trying to find out how to make the dot for the selected page be slightly bigger than the others as shown below: Page 1: Page 2: I am able to change the dot color, size for all the dots, background, etc, but not for the specific dot of the…
LilMoke
  • 3,176
  • 7
  • 48
  • 88
6
votes
2 answers

UIViews with UIPageControl

I'm a beginner when it comes to page control, and that's why I'm not sure 100% if my title agrees with what I want. I want to make a UIPageControl that when the user swipes on the screen, the view would switch over to another view and the…
Andy B
  • 515
  • 2
  • 5
  • 15
6
votes
1 answer

How do I lazy load 100+ pages in a UIScrollView with paging enabled?

I'm creating a comicbook-like application. I'm using a UIScrollView with paging enabled to display the hi-res full-screen images (the app works similar to Photos.app but with zooming disabled). The final product will have nearly 200 images that need…
user2393462435
  • 2,652
  • 5
  • 37
  • 45
1 2
3
49 50