Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-27-2009, 11:12 AM   #6 (permalink)
smasher
Senior Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 2,577
Default

You've done very well! Only a few things I see missing. You don't need plant1 to be an IBOutlet; it's easier to create it in code than in interface builder. To create the plant object, you do this:

Code:
//in (void)viewdidload from ViewController.m:
plant1 = [[StageClass alloc] init];
Also replace your @synthesize lines to just this one:
Code:
@synthesize plantState, water, fertilizer, harvest, harvestCounter, imageView;
You don't need water = _water, becuase you don't have variable named _water. The properties already match the variable names.
__________________
smasher is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,356
Threads: 39,149
Posts: 171,628
Top Poster: smasher (2,577)
Welcome to our newest member, Jakison
Powered by vBadvanced CMPS v3.1.0

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