Please document camera view structure for adding a single overlay view

Originator:alexcurylo
Number:rdar://7029367 Date Originated:July 2, 2009
Status:Open Resolved:
Product:iPhone SDK Product Version:3.0
Classification:Enhancement Reproducible:Always
 
Summary:

Applications that were previously accepted for the App Store are having their updates rejected because the internal view structure of the camera view is undocumented.

Steps to Reproduce:

1. Submit application that inserts an overlay view into the camera view in January.
2. Have it (and two companion volumes!) accepted, listed in the App Store, and sell marvelously.
3. Attempt to submit an update now.
4. Have it rejected.

Expected Results:

That previously accepted applications could be updated.

Actual Results:

Left hanging in the wind with hordes of angry users bringing out the torches and pitchforks.

Regression:

The problem occurs over multiple submissions and a DTS query, so regression appears to be trivial.

Notes: 

A tech note that documented the internal structure of the camera picker in sufficient detail for adding one simple overlay view would be quite sufficient. For instance, like this code:


- (void)customizeCameraOnOS3x:(UIViewController *)viewController
{
   UIView* controllerViewHolder = viewController.view;
   if (!controllerViewHolder.subviews.count)
      return;
   UIView* controllerCameraView = [[controllerViewHolder subviews]  
objectAtIndex:0];
   if (!controllerViewHolder.subviews.count)
      return;
   UIView* controllerPreview = [[controllerCameraView subviews]  
objectAtIndex:0];

   [[[poseImageView retain] autorelease] removeFromSuperview];
   poseImageView.alpha = 0.5;
   [controllerCameraView insertSubview:poseImageView  
aboveSubview:controllerPreview];
}


Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!