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
Post a Comment