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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -