0

Here is how i use my IPC:

ipc = nil; // reset (camera may be running)
ipc = [[UIImagePickerController alloc] init];
[ipc setDelegate:self];

ipc.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

[self presentViewController:ipc animated:YES completion:^(void){
    [self cancelShoot];
}];

It works well on 3GS with iOS 6, also i have no issues on iOS 7 simulator. While testing on iOS 7 devices (iPod 5 gen, iPhone 4, iPhone 5) it always crashes.

Is there anything new to the latest OS that i should be aware of?

Jano
  • 62,815
  • 21
  • 164
  • 192
cyborg86pl
  • 2,597
  • 2
  • 26
  • 43
  • Most probably your method call [self cancelShoot]; crashes your app, debug into it. – Engnyl Oct 02 '13 at 13:48
  • 1
    try commenting first line ipc=nil and [self cancelshoot] and see is it crashing still? – iAhmed Oct 02 '13 at 14:10
  • Sounds like a dup of http://stackoverflow.com/questions/18939537/uiimagepickercontroller-crash-only-on-ios-7-ipad – Chrix Oct 02 '13 at 14:42
  • Tanks for comments, removing `ipc = nil;` was a right thing. still i have no idea why was it a problem... – cyborg86pl Oct 03 '13 at 11:42

1 Answers1

0

Is "ipc" a pointer? Given how you are setting sourceType it looks like it isn't..

Emblazed
  • 63
  • 5