Monday, February 21, 2011

How to have a property for an array in iPhone

Hello all,

I have a UIButton array.

UIButton *btn[12];

I want to set property for this btn.

How to do this. I tried

@property(nonatomic, retain) UIButton *btn;

with @synthesize btn;

but it doesn works.

From stackoverflow
  • Use NSArray/NSMutableArray instead of primitive arrays, youll have a much easier time

0 comments:

Post a Comment