Loading an OverlayView from XIB -vs- programmatically for use with UIImagePickerController
Posted
by PLG
on Stack Overflow
See other posts from Stack Overflow
or by PLG
Published on 2010-03-21T18:27:12Z
Indexed on
2010/03/21
18:31 UTC
Read the original article
Hit count: 333
I am currently making a camera app for iPhone and I have a strange phenomenon that I can't figure out. I would appreciate some help understanding.
When recreating an overlay view for passing to UIImagePickerController, I have been successfully been able to create the view programmatically. What I haven't been able to do is create the view with/without controller in IB, load it and pass it to the overlay pointer successfully. If I do it via IB, the view is not opaque and obscures the view of the camera completely. I can not figure out why.
I was thinking that the normal view
pointer might be assigned when loading from XIB and therefore overwrite the camera's view, but I have an example programmatically where view and overlayView are set equal in the controller class. Perhaps the load order is overwriting a pointer?
Help would be appreciated... kind regards.
© Stack Overflow or respective owner