views:

21

answers:

0

Hello,

I'm developing an Augmented Reality application for iPhone. It's a "Tab Bar Application" with two buttons. The most left button show the camera, and the right button show a tableView.

I use camera's UIImagePickerController with an cameraOverlayView. I use this view to draw another views. I use these views to show locations visibles from the position of the user.

These views (locations) are not static, they move as user moves.

When I'm in camera's view, with another views (UILabels) over it, and I change to the TableView, and then return to camera's view I get an error:

The previous views (UILabels) appears without move, and I get another view for the same location moving around the screen.

I tried to remove all of subviews from cameraOverlayView, but it doesn't work (I do that on viewDidDisappear).

Maybe I can release cameraOverlayView on viewDidDisappear and create a new one on viewWillAppear.

What do you think?