UIImagePickerController and subviews

Discussion in 'iOS Programming' started by arnieterm, Mar 9, 2010.

  1. arnieterm macrumors regular

    Joined:
    Aug 28, 2008
    #1
    Hi All
    In my iphone app, I have an XIB with associated UIViewController. The app needs a switching between two screens:
    screen1: showing UIImagePickerController with camera ONLY
    screen2- An MKMapView.
    Both the screens have an overlying view containing that xib. The problem is that as camera screen only appears as modal, so how can we show the overlying screen to appear in both the screens [screen1 and scree2]. Also I do not want to duplicate the xib screen to appear in both screens as the xib screen has some dynamic data that needs a selection [a group of selection buttons]

    Thanks
    Arnieterm
     
  2. arnieterm thread starter macrumors regular

    Joined:
    Aug 28, 2008
    #2
    Hi All
    Able to solve the problem though don't know if that is a correct solution.
    Added the common UIView to window and made RootViewController to inherit UIImagePickerController.
    Now also able to push MapViewController.
    Now the common view appears as floating in both UIImagePickerController and MapView
    Still now I would like to know if this is a correct solution or not

    Thanks
    Arnieterm
     

Share This Page