#import [UIKit/UIKit.h]
@interface UIPeopleDetailController : UIViewController
UIImagePickerController *ImagePicker;
NSTimer *timer;
}
-(IBAction)btnCamera_Touch:(id)sender;
@end
//In main file
-(IBAction)btnCamera_Touch:(id)sender
{
ImagePicker = [[UIImagePickerController alloc] init];
ImagePicker.delegate = self;
#if TARGET_IPHONE_SIMULATOR
ImagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
#elif TARGET_OS_IPHONE
ImagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
#endif
//ImagePicker.navigationController.navigationBar.barStyle = UIBarStyleBlack;
ImagePicker.editing = YES;
[self presentModalViewController:ImagePicker animated:YES];
[ImagePicker release];
}
No comments:
Post a Comment