display the data on the tag of UIButton in objective-c

I have stored 5 images in an NSMutableArray . In .h file:

   @property(weak,nonatomic)IBOutlet UIButton *b1;
   @property(weak,nonatomic)IBOutlet UIButton *b2;
   @property(weak,nonatomic)IBOutlet UIButton *b3;
   @property(weak,nonatomic)IBOutlet UIButton *b4;
   @property(weak,nonatomic)IBOutlet UIButton *b5;

I have placed 9 UIButton in the UIView.And i set tag for each UIButton.I need to use random tag to display the images .how to do?

0 Comment

NO COMMENTS

LEAVE A REPLY

Captcha image