Hendrik Gruß
Hendrik Gruß

Reputation: 15

How to change uipagecontrol's number of pages animated?

Is it possible to animate the change of number of pages for UIPageControl animated? I'd like to get an animation in which the dots go to the middle an then expand with a new number of pages. Think that could look quite well. But any other animation would be appreciated, too.

Thanks for your help!

Upvotes: 0

Views: 1762

Answers (2)

dasdom
dasdom

Reputation: 14073

To do this you have to build your own Page Control. What you could do with the UIPageControl is to add a new one with the same frame and alpha = 0.0 and fade out the old page control and fade in the new with the update number of pages.

Upvotes: 0

Related Questions