Easiest way to switch views! - iPhone SDK Xcode Tutorial
Loading...
9,595
Loading...
Uploader Comments (AppleHack23)
see all
All Comments (49)
-
It's easy but bad style.
-
Easiest tutorial on this I have seen. Thanks!
-
If this helps you need 2 buttons on each view one forward one back..
-
im using xcode 4 and it crashes every time i try to press the switch button. help!
-
ive tried doing this inside a tap bar app and the app always crashes when i klick on he button!
-
WOW!! That was great, it also works for view based apps too, this is great thanks for the tutorial!! BIG HELP
-
can u use the "setHidden" on views instead of windows?
-
Thanx mate!!
-
easier way>>>>>>>> youtube . com/user/ipodtouchacker
-
When i Build and Run it goes to my second view, and i cant click on the button that i made. Whats happening?!
Loading...
I found this an superb tutorial on how to make multiple views quickly but I have come across a problem worthy of another tutorial which know one seems to cover. If you build a project that has say 10 views and you navigate to say view 6 and you want to go back to view 5 how would you do this?
I have tried for hours (newbie) to get this to work taking reference from the way view2 goes back to view one but I don't seem to be able to replicate it on other views.
Any help??
Regards
FrankFlaps 1 year ago
@FrankFlaps
In your IBAction for your switch to view 5 button, you would do this:
[view6 setHidden:YES];
[view5 setHidden:NO];
and if you wanted to make sure all the views were hidden except 5, just to make sure, you would just do [view/*(Number)*/ setHidden:YES]; for each view.
AppleHack23 1 year ago
im not getting the "Received Actions" at 3:03.
331319 1 year ago
@331319 Click on your Xcode window and press command + b at the same time on your keyboard. Then click save all. Now try.
AppleHack23 1 year ago
your an idiot this is not the easiest way to do it its alot more than 2 lines of code and it wont work with alot of people because alot of peolpe wont have the apdelegate because they arent doing this on their main view
madmax18765 1 year ago
@madmax18765 Do you listen at all? I said you can do this is any .m.
AppleHack23 1 year ago