I have followed the suggestions in the existing questions on this topic (UIDocumentInteractionController doesn't work since iOS6 and UIDocumentInteractionController no longer works in iOS6), but I'm still having trouble with UIDocumentInteractionController under iOS 6.
My app is a single UIView (myview
) that implements UIDocumentInteractionControllerDelegate
, there is no view controller. In touchesBegan
, there is the following code:
UIDocumentInteractionController *dic;
dic = [UIDocumentInteractionController interactionControllerWithURL:fileURL];
dic.delegate =self;
[dic retain];
if([dic presentOptionsMenuFromRect:CGRectZero inView:myview animated:NO])
result=1;
This works fine on iOS 5, a list with compatible apps is presented, the apps start when selected and load the file specified in fileURL
. On iOS 6, nothing happens, but result
still indicates success. It is as if the options menu was hidden.
Could it be because I'm using iOS SDK 4.3?