objective c - How to @synthesize a C-Style array of pointers? -
i have property defined in class so:
@interface myclass uiimageview *drawimage[4]; ... @property (nonatomic, retain) uiimageview **drawimage; ... @synthesize drawimage; // fails compile
i have found similar questions on stackoverflow , elsewhere, none address issue. objective-c kosher way this?
you can't; have change retain
assign
, handle memory management yourself; can't send -[retain]
uiimageview **
(as isn't object.)
that say; can't use @synthesize
lead epic memory leaks assign
, doesn't work retain
or copy
; need implement -drawimage
, -setdrawimage:
, write accessor code.
but don't that. use nsarray
.
Comments
Post a Comment