3
我增加了標籤,攝像頭的覆蓋和我成功添加它相機覆蓋標籤問題
但我所面對的標籤也出現在拍攝照片的預覽
我想要顯示的在攝像頭覆蓋的標籤沒有添加標籤的拍攝照片的預覽我用下面的代碼
UIView *overlayView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
overlayView.opaque = NO;
overlayView.backgroundColor = [UIColor clearColor];
[overlayView addSubview:topImgView];
[overlayView addSubview:btnInfo];
[overlayView bringSubviewToFront:btnInfo];
UILabel *label =[[UILabel alloc]initWithFrame:CGRectMake(20, 0,290,150)];
label.text [email protected]"Hold the bottle steady, left align the prescription label, and then take the photo";
label.backgroundColor = [UIColor clearColor];
label.numberOfLines = 2;
label.textAlignment = UITextAlignmentCenter;
label.font = [UIFont boldSystemFontOfSize:14.0];
label.textColor = [UIColor whiteColor];
[overlayView addSubview:label];
_infoLabel =label;
[label release];
//Image picker
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
imagePicker.delegate = self;
imagePicker.cameraOverlayView=overlayView;
[self presentModalViewController:imagePicker animated:YES];
_imagePicker =imagePicker;
[imagePicker release];
[topImgView release];
[overlayView release];
任何一個可以請幫我該怎麼做的事...