Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-13-2009, 09:13 AM   #3 (permalink)
Shmoopi
Shmoopi LLC
 
Shmoopi's Avatar
 
Join Date: Jun 2009
Location: Virginia
Posts: 213
Shmoopi is on a distinguished road
Default

Quote:
Originally Posted by rocotilos View Post
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!
Shmoopi is offline   Reply With Quote
 

» Advertisements
» Online Users: 862
19 members and 843 guests
13dario13, ADY, Ananth, anil_shanebond, AyClass, Batman, brajpal, Christioren, givensur, HemiMG, HenryCLacey, ilmman, Lily.P, momolgtm, Nobbsy, pipposanta, Renrob, RockBaby, SillyHoney
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,389
Threads: 94,003
Posts: 402,462
Top Poster: BrianSlick (7,978)
Welcome to our newest member, HenryCLacey
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:04 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.