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 10-20-2009, 07:41 AM   #2 (permalink)
rwenderlich
Registered Member
 
rwenderlich's Avatar
 
Join Date: Aug 2009
Posts: 162
rwenderlich is on a distinguished road
Default

The problem is c-style arrays and properties don't get along too well... there's a nice article describing the problem here:

@synthesize-ing a C array of structs in Objective-C 2.0 - Stack Overflow

If you want to keep using c-style arrays as you have it, you could use the following work-around:

Code:
// .h
@property (readonly) UIImageView ** mySquare;
// .m
@dynamic mySquare;
- (UIImageView **)mySquare { return mySquare; }
Another perhaps simpler workaround is to use an NSArray instead of a c-style array.
__________________
Check out my iPhone development blog!

Motivate yourself to become an expert with LevelMeUp!

--Ray Wenderlich
rwenderlich is offline   Reply With Quote
 

» Advertisements
» Online Users: 497
21 members and 476 guests
alexonit, Apptronics RBC, Bryan1, coolman, David Phan, denicevh18, devno, Djaker, dljeffery, Droverson, Duncan C, Hassasin, HemiMG, ilmman, Kirkout, mer10, mpsventas, Newbie123, newprogrammer, Speed, t_hgezhong
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,315
Threads: 93,989
Posts: 402,428
Top Poster: BrianSlick (7,978)
Welcome to our newest member, alexonit
Powered by vBadvanced CMPS v3.1.0

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