ios - How do you create and index Apple Watch interface pages -
i'm creating watch app has multiple pages using same interface controller. know how custom manager object can index each controller.
i've tried adding ibinspectable index set in storyboard, controllers report pageindex 0 after init & awake calls.
i know create subclasses return own index, seems messy.
you have no control on index, matter of adding them array in order want.
this how present pages:
[self presentcontrollerwithnames:controllers contexts:contexts];
both controller , contexts arrays. pages presented order have in array.
if present multiple controllers of same type, create loop , add them controller array. same contexts.
controllers[0] use contexts[0] , on.
Comments
Post a Comment