简体   繁体   中英

transparency in UIImagePickerController cameraOverlayView

Several questions discuss how in iOS 4.3, the cameraOverlayView of a UIImagePickerController is scaled to the size of the screen. I am trying to implement a custom set of controls for one of these controllers, and so now as I cannot have the overlayView have a smaller frame and be positioned at the bottom, I'm trying to use transparency.

My question is, if I have a full-screen view with alpha=0.5, is there some way to have a subview of it have a greater alpha? If so I can make the bulk of the cameraOverlayView be transparent. Otherwise I don't know how to make a useful overlayView.

Well, this is a start. If I set the frame of the overlayView after calling presentModalViewController then it correctly fills up only part of the screen.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM