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-28-2009, 05:29 AM   #2 (permalink)
nobre84
Registered Member
 
Join Date: Nov 2008
Posts: 863
nobre84 is on a distinguished road
Default

What is "viewController" ? Are you sure there is always a viewController.view properly set when you call the method ? If you call removeFromSuperview on an object that has been released, it'll crash.

Is "gameViewController" retained in your setGameViewController method ? It must be retained or you'll crash later, because you released the "gameview" variable. If it is a property, use the retain keyword next to its declaration. If you implemented it, manually retain the new value, release the old one, THEN assign it to your variable.
nobre84 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,422
Threads: 94,017
Posts: 402,544
Top Poster: BrianSlick (7,978)
Welcome to our newest member, iAppDeveloper
Powered by vBadvanced CMPS v3.1.0

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