views:

59

answers:

1

Hi , i want creating uibarbutton without interface builder = (whit code) and this button is style camera please help me

+1  A: 
UIBarButtonItem* cameraBarButtonItem = 
     [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCamera
     target:self action:@selector(myCameraAction)];

This will create a UIBarButtonItem with the system item icon of the camera.

DonnaLea
Thanks Donnalea , great job
Milad