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 06-02-2009, 06:47 PM   #5 (permalink)
sheisdig
New Member
 
Join Date: Jan 2009
Posts: 10
sheisdig is on a distinguished road
Default Clarification on solution

The issue had to do with IBOutlets within UIViewControllers. I resolved my issue by adding this method:

Code:
-(void)setView:(UIView*)aView {
	if (!aView){
		//set outlets to nil here
		self.scrollView = nil;
		self.joinButton = nil;
		self.activityProgress = nil;
		self.numPlayersLabel = nil;
		self.numPlayersText = nil;
		self.timeView = nil;
		self.timeLabel = nil;
	}
	[super setView:aView];
}
And then in your dealloc method, release IBOutlets and set to nil.

Code:
- (void)dealloc {
	[scrollView release], scrollView = nil;
	[joinButton release], joinButton = nil;
	[activityProgress release], activityProgress = nil;
	[numPlayersLabel release], numPlayersLabel = nil;
	[numPlayersText release], numPlayersText = nil;
	[timeView release], timeView = nil;
	[timeLabel release], timeLabel = nil;
        [super dealloc];
}
I think I also may have had an IBOutlet instance that I didn't actually declare as an outlet in my header file.

Hope that helps.
sheisdig is offline   Reply With Quote
 

» Advertisements
» Online Users: 486
19 members and 467 guests
7twenty7, apatsufas, AppsBlogger, Art, buggen, chenpo, ChrisYates, GHuebner, greeneye82, iOS.Lover, jbro, Kirkout, mediaspree, omerkarakaya, PavelMik, samdanielblr, swelsh, taylor202, TheStalker
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,636
Threads: 94,101
Posts: 402,809
Top Poster: BrianSlick (7,990)
Welcome to our newest member, samdanielblr
Powered by vBadvanced CMPS v3.1.0

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