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++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -