ios - How to get pending view controller from method? -


how can pending view controller value method?

-(void)pageviewcontroller:(uipageviewcontroller *)pageviewcontroller willtransitiontoviewcontrollers:(nsarray *)pendingviewcontrollers { } 

what code can use pending view controller value array? appreciated?

i have tried using code:

 nextindex = (int)[pendingviewcontrollers objectatindex:0]; 

but keeps returning -1 instead of next or previous value!

the method passes in array of pending view controllers, not index, can't cast int. if want first view controller, can this,

uiviewcontroller *vc = pendingviewcontroller.firstobject;


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -