Quote:
Originally Posted by rocotilos
Hi Shmoopi, nice tutorial.
But like to ask, why do u use atIndex 100?
how about using this (i never used it tho, but something i read in the doc):
Code:
[self.view insertSubview:startupView.view aboveSubview:mainView];
|
Good question, I chose atIndex:100 to make it the center of attention, say you have 99 items on your screen, if I choose atIndex:98 then 1 of the items will still be in front of the Startup View, whereas atIndex:100 will be first and foremost on your screen. Here is a picture of it:
This picture shows how the Startup View, with the Big Red Button appears to be a part of the Main View, the one with the navigation bar, instead of just a white view with a big red button, the MainView is also a part of it. Try it out and you'll see what I mean.
I read the doc's on Apple and saw it too, you very well could do that but you would have to declare your mainView, I didn't try it but it looks like it would work. Thanks for the comments!