Hello,

Here is a tutorial to show how to hide a UIButton programmatically:

1) Create a Button from Interface Builder

2) Create and connect an IBOutlet at your .h file:

Code:
    IBOutlet UIButton *sample;
@property (nonatomic, retain) IBOutlet UIButton *sample;

3) at your implementation file, synthesize the UIButton:

Code:
@synthesize sample;
4) Put the following code inside any method in your implementation depending on when you want the button to hide, i'll use a conditional to check if there is a camera on iOS device or not:

Code:
 if ( ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]))
		
	{	

        sample.hidden = YES;
}
If you have any questions don't hesitate to ask