开发者

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...

ipad NSArray of ViewControllers


yes why not, you can create an NSArray with objects of viewControllers

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜