ipad NSArray of ViewControllers
is it possible to declare an NSArray withobjects of view controllers? I'm trying to use two buttons to call an array that will loop through and count through 20 different views. Right now, my array works in calling and displaying multiple images in a single view application. what would i do to create an nsarray of view controllers, so that every time the "next" action method is called, a new view is loaded, and essentially, counted through the array?
This is currently what I have listed in my array
-(IBAction)getNextView {
imageArray=[[NSArray arrayWithObjects:
[firstViewController.view],
[secondViewController.view],
[thirdViewController.view];
}
But I think i am missing a valid point of updating the mainview with the elements in the array...
Thanks!
UPD开发者_如何学JAVAATE : This is what I am trying to achieve...
yes why not, you can create an NSArray with objects of viewControllers
精彩评论