IKANGAI Solutions. e.u.

Mobile Business Solutions

T F G+ E

Posts Tagged ‘UIImagePicker’

iSENDu bug – technical details

December 15th, 2009 by Martin No Comments

The reason for the iSENDu picture display bug is quite interesting: if an image is serialized into a NSData object, i.e., essentially transformed into a stream of bytes using the UIImagePNGRepresentation from the UIKit framework, the original Exif information is somehow lost. And, to make things worse, the width and height of an image is automatically set to 1600, 1200 pixels respectively, while the image orientation is set to up.
We will investigate this issue in greater detail and post the corresponding code later today.

Your ikangai team

iSENDu bug – fix

December 14th, 2009 by Martin No Comments

It appears that the iSENDu picture display bug is related to some troubles with Exif and the iPhone camera. Now that we know, what the problem is, we are going to fix it. We will post the solution later this week.

Your ikangai team

iSENDu – update

October 13th, 2009 by Martin 5 Comments

After turned down the second time by the Apple, we are currently changing the user interface of iSENDu (again). We changed the selection of multiple images in the UIImagePicker (there is no indication of the selected images any more) according the requirements of Apple. But, we are going to add a new feature instead, to make iSENDu even more flexible. We are going to provide the means to let you (the user of iSENDu) decide, whether to send an iPhone optimized version of the selected picture (fast) or the uncompressed picture itself (full). We plan to submit the new version of iSENDu in the next couple of days. We keep you posted about all developments.

Your ikangai team

Code Snippet of the Week – Additional Infos

October 7th, 2009 by Martin No Comments

The discussions in the iPhoneSDK Google Group drew our attention to an implementation detail (thank you Hamish) which could be the case for the reject of iSENDu:

[[picker.viewControllers objectAtIndex:1] setToolbarItems:toolBarItems];

We will confirm this with the Apple support and then decide if we are going to change iSENDu and upate the implementation of the multi selection of images or remove it from this version.

Your ikangai team

Code Snippet of the Week – Follow Up Disscussion

October 7th, 2009 by Martin No Comments

After contacting Apple and asking if one can modify the behavior of the UIImagePicker as we did in the code snippet of the week and in iSENDu, we received the following statement of Apple:

[..] In particular, your manipulating the
internal view hierarchy of an Apple provided class. By inserting a
subview, your making assumption about they look, feel, and design of an
Apple provided class. Doing so severely restricts our ability to evolve
that class in the future.

At this point, UIImagePicker does not provide a supported mechanism for
extending it. Please file an enhancement request at
asking for such an API to be added to the
SDK. Please let me know if you have any other questions or there is
anything else I can do to help.

So, if you plan to use the code in one of your projects, be aware that this might be a reason for Apple to reject your app. We are still debating with Apple and a discussion about the matter with other developers can be found here (registration required).

Your ikangai team

Code snippet of the week – UIImagePicker

October 4th, 2009 by Martin 2 Comments

The code snippet of the week explains an advanced use of the UIImagePicker which includes feedback for the user about the selected pictures. We use the lower part of the UIImagePicker to display thumbnails of selected images.

So, let’s dig into the code. The first step is to overwrite the UINavigationController method willShowViewController. Here, we customize the controller size in order make room for the display of our thumbnails. That’s all we need for the setup of our new customized UIImagePicker.
(more…)