I'm trying to set up an app that works with UIPageViewController. I technically could instantiate all the view at once and put them in an array, but that would be expensive, and it seems better to initialize the views as needed. I read that an NSInvocation is a message rendered static-- so I was thinking I could have an array that basically contains: [SubclassA alloc]init], [SubclassB alloc]init], etc...
with those messages wrapped in an NSInvocation. I could then return the result of that message in pageViewController:ViewControllerAfter/BeforeViewController:.
I'm still pretty new at this, so it is very possible I am fundamentally misunderstanding NSInvocation, but either way, an answer would still be helpful.