Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-16-2009, 02:43 PM   #11 (permalink)
smasher
Senior Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
Default

I think you have your labels in your post reversed? Maybe you have it right in the files; the .h file as the interface and the property; the .m file has the synthesize and the implementation.

In the .m file, you can replace this:
Code:
NSArray *myArray= [NSArray arrayWithObjects: 
		   @"Response 1.",
		   @"Response 2.", nil];
with this
Code:
self.myArray= [NSArray arrayWithObjects: 
		   @"Response 1.",
		   @"Response 2.", nil];
The first one makes a new pointer variable and uses it, the second one uses the property that you set up the the .h file.
__________________

Free Games!
smasher is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,741
Threads: 89,197
Posts: 380,545
Top Poster: BrianSlick (7,129)
Welcome to our newest member, AlexRob58
Powered by vBadvanced CMPS v3.1.0

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