Hello all!!!
Can you help me? I want to customize toolbar items in my app, because default text language is only english. I want to change text in items, toolbar color, and toolbar text(edit view in ImagePickerController). How can i do? Thanks.
Example:
Code:
@interface myclass : UIViewController<UINavigationControllerDelegate,UIImagePickerControllerDelegate,UIActionSheetDelegate,UIScrollViewDelegate>
{
}
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.navigationBar.tintColor = [UIColor blueColor];
imagePicker.delegate = self;
imagePicker.allowsEditing = YES;
if (buttonIndex == 1)
{
[imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera];
[imagePicker setCameraCaptureMode:UIImagePickerControllerCameraCaptureModePhoto];
//not work
[imagePicker.toolbar setTintColor:[UIColor blackColor]];
}
[self presentModalViewController:imagePicker animated:YES];
[imagePicker release];
}
}