ios - UIPageControl customization -


i'm trying make uipageviewcontroller can swipe between different vc's. instead of custom dot control need have custom buttons. either user can select different vc button click or can swipe.

right i'm using uiscrollview make this. don't know how proceed buttons need that.

is there custom control that'll useful this?

you can in different ways. if have 3 pages, can create ui 3 buttons(or tab bar) , in action can call:

[self.pageviewcontroller setviewcontrollers:@[[self viewcontrolleratindex:yourpageindex]                                   direction:uipageviewcontrollernavigationdirectionreverse                                    animated:yes                                  completion:nil]; 

uipageviewcontrollernavigationdirectionreverse or uipageviewcontrollernavigationdirectionforward can used required.

this how it.

or can use custom libraries: carbon kit working library. here can find many of them.

or try this( a simpler example on carbon kit )


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -