★ TouchArcade needs your help. Click here to support us on Patreon.

Trying to work views in 3.0

07-14-2009, 04:07 PM
#1
Joined: Jan 2009
Posts: 87
Trying to work views in 3.0

I've been trying to create a simple view-changing app and no matter how many tutorials I watch and no matter how many samples I download I always get the same thing. When I click the button to change the view I get a blank white screen I think this has to do with 3.0 but it's probably just me! Thank you if you can help!
07-14-2009, 04:47 PM
#2
Joined: May 2009
Location: Palmerston North, New Zealand
Posts: 464
Quote:
Originally Posted by Drenguin View Post
I've been trying to create a simple view-changing app and no matter how many tutorials I watch and no matter how many samples I download I always get the same thing. When I click the button to change the view I get a blank white screen I think this has to do with 3.0 but it's probably just me! Thank you if you can help!
You're saying that the sample programs exhibit the same behaviour?

Check out Sheepish, 100+ levels of puzzle fun! With sheep!
And more about us: www.pixelthismobile.com
plus+ id: Newtz

07-14-2009, 04:48 PM
#3
Joined: Jan 2009
Posts: 87
Yes I used the ones from the schenk studios site and it did the same thing.
07-14-2009, 05:01 PM
#4
Joined: May 2009
Location: Palmerston North, New Zealand
Posts: 464
Quote:
Originally Posted by Drenguin View Post
Yes I used the ones from the schenk studios site and it did the same thing.
Does it run differently on the device compared to in the simulator?

Check out Sheepish, 100+ levels of puzzle fun! With sheep!
And more about us: www.pixelthismobile.com
plus+ id: Newtz
07-14-2009, 05:04 PM
#5
Joined: Jan 2009
Posts: 87
I can't run it on a device I haven't paid yet.
07-14-2009, 05:19 PM
#6
Joined: May 2009
Location: Palmerston North, New Zealand
Posts: 464
Quote:
Originally Posted by Drenguin View Post
I can't run it on a device I haven't paid yet.
First thing I would try is reinstalling the SDK, sounds like something is corrupt if you can't run other peoples examples. Assuming here that you haven't modified the example project in any way.

Check out Sheepish, 100+ levels of puzzle fun! With sheep!
And more about us: www.pixelthismobile.com
plus+ id: Newtz
07-14-2009, 05:25 PM
#7
Joined: Jan 2009
Posts: 87
How do you implement view changes?
07-14-2009, 06:23 PM
#8
Joined: May 2009
Location: Palmerston North, New Zealand
Posts: 464
Quote:
Originally Posted by Drenguin View Post
How do you implement view changes?
Kinda hard to remember because I'm using cocos2d and scene switching now! Basically you should have UIViewController objects that contain UIView objects. When you initialise a view controller you are able to access its view object and add that as a subview of your window or another view if you have some sort of hierarchy going on. That is fairly simplistic though because Interface Builder fits into the equation too if you are using example code.

Check out Sheepish, 100+ levels of puzzle fun! With sheep!
And more about us: www.pixelthismobile.com
plus+ id: Newtz
07-14-2009, 08:48 PM
#9
Joined: Jan 2009
Posts: 87
Okay I'll attempt to change up the code I have and try to get it to work. Is cocao2d very different from obj-c because that's probably alot more powerful for game programming.
07-14-2009, 09:04 PM
#10
Joined: May 2009
Location: Palmerston North, New Zealand
Posts: 464
Quote:
Originally Posted by Drenguin View Post
Okay I'll attempt to change up the code I have and try to get it to work. Is cocao2d very different from obj-c because that's probably alot more powerful for game programming.
cocos2d is mainly obj-c with the odd bit of C/C++ depending on how deep you dig below the surface.

Check out Sheepish, 100+ levels of puzzle fun! With sheep!
And more about us: www.pixelthismobile.com
plus+ id: Newtz