[iPhone] - No Touch Events After Selecting Photo in UIImagePicker

In my OpenGL ES app, after calling the UIImagePicker and selecting a photo (or hitting cancel,) my app no longer registers any touch events.
Touch events work fine before UIImagePicker is called. I am guess that somehow UIImagePicker (even though I release it) or something else is intercepting the touch events and not passing them along.
Does anyone have any idea how to solve this problem?
Photo Controller code:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
[self UseImage:image];
// Remove the picker interface and release the picker object.
[[picker parentViewController] dismissModalViewControllerAnimated:YES];
[picker release];
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
[[picker parentViewController] dismissModalViewControllerAnimated:YES];
[picker release];
- (void)SelectPhoto
if( [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary ] )
UIImagePickerController *pImagePicker;
pImagePicker = [[UIImagePickerController alloc] init];
pImagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
pImagePicker.delegate = self;
pImagePicker.allowsImageEditing = NO;
// Picker is displayed asynchronously.
[self presentModalViewController:pImagePicker animated:YES];
- (void)TakePhoto
if( [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera ] )
UIImagePickerController *pImagePicker;
pImagePicker = [[UIImagePickerController alloc] init];
pImagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
pImagePicker.delegate = self;
pImagePicker.allowsImageEditing = NO;
// Picker is displayed asynchronously.
[self presentModalViewController:pImagePicker animated:YES];
// Implement this method in your code to do something with the image.
- (void)UseImage:(UIImage*)theImage
The code calling the photo controller:
[g_window addSubview:m_pPhotoController.view];
[m_pPhotoController SelectPhoto];
Thanks.

Some more information:
If I add a TouchesBegan function to my PhotoController it registers the touches. The stack-trace is:
#0 0x000315be in -[GEPhotoController touchesBegan:withEvent:] at gephotocontroller.mm:155
#1 0x30adb941 in forwardMethod2
#2 0x30a6786b in -[UIWindow sendEvent:]
#3 0x30a56fff in -[UIApplication sendEvent:]
#4 0x30a561e0 in _UIApplicationHandleEvent
#5 0x31565dea in SendEvent
#6 0x3156840c in PurpleEventTimerCallBack
#7 0x971545f5 in CFRunLoopRunSpecific
#8 0x97154cd8 in CFRunLoopRunInMode
#9 0x31566600 in GSEventRunModal
#10 0x315666c5 in GSEventRun
#11 0x30a4eca0 in -[UIApplication _run]
#12 0x30a5a09c in UIApplicationMain
#13 0x00002be0 in main at main.m:14
I tried removing the photo controller's view by calling
[m_pPhotoController.view removeFromSuperview];
But to no avail. My photo controller object still captures all the touch events.

Similar Messages

  • Create and name an event by selecting photos in an existing event.

    If I select photos in an event and choose "create an event", the selected photos are lost and an "Untitled Event" appears. How do I name that event? It is a lost effort until that occurs.

    You cannot name the event while viewing pictures within the event.
    Get out of the event to where you are viewing all events. Click on the text under the thumbnail of the event you want to rename.
    You would think you could pull down the event menu and get an option for this when viewing photos within the event but that is not the case.

  • [iPhone] No touch events inside statusbar area

    When I hide status bar using: [[UIApplication sharedApplication] setStatusBarHidden:YES]; touch events are blocked in statusbar area (20 pixels at top of the screen). How I can fix this, I havent found anything that could solve this?

    First, you're not going to get much help if you lose patience waiting for a response after only two hours. Second, this has been discussed before...search the discussions (and Google) before you post. (It's a known issue with no current solution.)

  • IPhone / iPod Touch Remote to change Photo Rating?

    Is it possible to change a photo's rating in iPhoto using an iPhone / iPod Touch with Apple's "Remote" App (or alternately the little white remote included with an iMac)?

    Welcome to the Apple Discussions.
    I've never found a way with the little remote included with the iMac, but then again, when you use that you're not in iPhoto, but in a programme called Front Row.
    Regards
    TD

  • Block input events after selecting JTree node

    Hi,
    I've got a common problem but didn't found any solution for it.
    I try to block input events (key and mouse events) after the user clicks on a tree node in the TreeSelectionListener.
    For normal clicks it works fine.
    If the user make a double click than the blocking mechanism also blocks the mouse events to handle the additional expansion of the tree node.
    Any solutions for this?
    Thanks,
    Steffen

    I use the following code to blocking input events:
          waitTimer = new Timer(350, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              Toolkit.getDefaultToolkit().addAWTEventListener(awtEventListener,
                  AWTEvent.MOUSE_EVENT_MASK | AWTEvent.MOUSE_WHEEL_EVENT_MASK | AWTEvent.KEY_EVENT_MASK);
          waitTimer.setRepeats(false);
          waitTimer.start();The event listener looks like:
        awtEventListener = new AWTEventListener() {
          public void eventDispatched(AWTEvent anEvent) {
            if(anEvent instanceof InputEvent && anEvent.getSource() instanceof Component)  {
                ((InputEvent) anEvent).consume();
        };

  • When I try to adjust the date and time of an event by selecting Photos from iPhoto, the year I enter is altered.

    I have images in iPhoto from an older digital camera which did not record the date and time.  In iPhoto, with an event selected, I have tried to adjust the date and time by choosing Photo.  When I adjust the date and check Modify original files, it makes the date much earlier--in centuries.  I now have an event from August 2003 (the date I entered) which reads June 2, 1251 under the event!  When I attempt to correct it, it goes back further in time.  What am I doing wrong?

    (I use iPhoto only to import from my iPhone; I organize all my images, including thousands of RAW files, in folders on a big external drive.)
    Why are you using iPhoto at all? use image capture or drag and drop the photos
    The problem is that the files I am copying are getting stripped of the EXIF metadata
    eliminating iPhoto from your work flow will eliminate one oppertunity to have this happen  For photos in iPhoto it is best to export them rather than drag an drop them - this assures your EXIF and IPTC data is correct and uptodate
    Why would I be able, over many years, to retain EXIF metadata in photos imported from an iPhone--then one day find that the same workflow strips such photos of EXIF data?
    Because exporting is the supported way to "export" photos - I never drag and drop photos out of iPhoto and I never use thrid party programs on the photos in the iPhoto library - try exporting as suggested above and see if that is the solution
    LN

  • Photoshop Touch crashes after selecting "Wrap" tool for the second time

    As title says, when selecting "wrap" tool for the second time, Photoshop Touch crashes. It doesn't matter which images and even after reboot and clearing all the RAM, it constantly crashes only when selected for the second time. I'm using this on Galaxy Note 2 so it really shouldn't have issues with RAM or Processing power. I'm not quite sure about other tools but it should be looked into and hopefully more stable version will be release soon!
    Thank you
    Device: SGH-T889 T-Mobile Galaxy Note 2

    Hi,
    We just released an update that should take care of that issue.
    thanks,
    Ignacio

  • Iphone not syncing all my selected photos

    I have a folder of photos in iphoto that I sync with my iphone. It contains 512 photos. Until recently, all these photos appeared on the iphone. Now only 153 of them are synced, the rest have been removed from the iphone (although they are still in the iphoto folder). Can anyone explain why these photos won't sync?
    Thanks
    J

    plug in your phone and go into "My Computer".
    Right Click on the iPhone and you have two options on how to get your pictures
    1.Explore/Open your phone and manually drag and drop individual pictures into your desired folder or
    2. Get Pictures and select your desired folder, then All your pictures will tranfer over to your folder automaticly.
    Besides there is a step by step instruction on [how to transfer or backup iPhone photo to computer|http://www.softwarebbs.com/wiki/Howto_transfer_or_copy_my_photos_from_iPhone_toPC].
    Hope it can do you a favor.

  • In photos: I have tried to select and delete some duplicate pictures that I transferred from my other iPhone 5S on this new iPhone 5S and when I select the only options available is moving the photos or email/text. I cannot put in trash bin

    iPhone 5s photos/video,deleting duplicate photos and video transferred from other iPhone 5s & iPhone 4S
    I have tried selecting photos and videos to throw them in trash bin, but the trash bin doesn't work when pressing and or clicking on it
    I would like to know how to get rid of the unwanted and duplicate pictures that I've transferred from my other iPhones. 
    If someone could please help me, I would greatly appreciate it !!
    Thank you so much,
    Ginger

    How did you transfer the photos from your other iPhone? If you did it by importing them from the old phone to a computer and then used iTunes to sync them back to the new phone, then you would delete them by syncing again using iTunes but this time change the selection of which photos are to be synced. Each time you sync using iTunes, it sets the non-Camera Roll photos on the phone to match the current settings/selection in iTunes.

  • Hello After upgrading iPhoto 9.1.2 when you synchronize the iphone / iphoto ipad events are not copied correctly (this option checked all the photos on itunes).

    Hello
    After upgrading iPhoto 9.1.2 when you synchronize the iphone / iphoto ipad events are not copied correctly (this option checked all the photos on itunes).

    I found this other thread discussing this topic, no fix, I will revert to 9.1.1 from Time Machine and wait for a new update.
    https://discussions.apple.com/thread/3023160?

  • After updating to IOS 6.0.1 I cannot copy photos from the iPhoto library to the iPhone. The events appear correctly but the photo count in all the Events is 0

    After updating to IOS 6.0.1 I cannot copy photos from the iPhoto library to the iPhone. The events appear correctly but the photo count in all the Events is 0

    Same problem here, and it's not isolated.
    https://discussions.apple.com/message/20228281#20228281
    I believe you will find you can again sync Photos if you delete the "iPod Photo Cache", but predict that any subsequent attempt will fail.  In my case, the enxt sync removes all the photos again - I've seen other reports of error messages upon sync.  Mine just fails silently. :-)

  • Just got my iPad and when syncing photos will only sync recent photos taken on iPhone - will not sync any photos from my albums or events despite selecting all events

    Just got my iPad and when syncing photos will only sync recent photos taken on iPhone - will not sync any photos from my albums or events despite selecting all events or even when i select specific events or albums.

    What is the file name of the video(s) you want to sync?
    Another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
     Cheers, Tom

  • How can I copy selected photos from iPhoto on my iMac to my iPhone 6?

    I used to have many photos on my iPhone 6. I also have thousands of photos on my iMac. After iDrive became available I decided to try it, and uploaded my large photos library to my iPhone and iPad. After using it for awhile I decided against keeping all these photos on my other devices. I removed everything from iDrive and my IOS devices. Now I'd like to find a way to restore some of my photos to IOS devices.
    I'd appreciate any suggestions on how to do that.
    Thanks

    Put the photos you want to upload to your iPhone in an album in iPhoto.  Connect the iPhone to the Mac and launch iTunes. 
    Click on your iPhone icon
    and then on Photos
    Next check Sync Photos and Selected albums.  Find the album with the photos you want to upload and select it. 
    Lastly click on the Sync button.

  • Sometimes when I connect my iPhone to my iMac to sync, it does not download all my selected photos to my iPhone

    Lately when I connect my iPhone or iPad to my iMac to update files, when I select events and photos to add, iTunes does not import all events or all photos from these events.  It tells me that 672 photos were not imported and to check iTunes.  (10 Where in iTunes do I check to find out what the problem is in not importing these images?  (2) Why is iTunes not importing all selected events from my photos or skipping (not importing) selected photos?

    i figured this out through other posts. simply turn your restrictions off and restart your phone. all apps should be open to you.

  • Downloaded OS 10.10. Was instructed to download iPhone 9.6. After 9.6 was downloaded iPhoto requested to update photo library which it will not do. How do I upgrade the photo library?

    Downloaded OS 10.10. Was instructed to download iPhone 9.6. After 9.6 was downloaded iPhoto requested to update photo library which it will not do. How do I upgrade the photo library?

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

Maybe you are looking for