ios - Phonegap-Plugin ExternalFileUtil doesn't work on all devices -


i'm using externalfileutil-plugin phonegap (https://github.com/phonegap/phonegap-plugins/tree/master/ios/externalfileutil). work's @ iphone. work's on iphone-simulator ios 6.0 , 6.1 , work's on iphone 4 , 5 ios 6.x. doesn't work on ipad, neither on simulator nore on devices , on ipod touch ios 5.1 doesn't work ;(

i've tried suggestions described in comments on http://www.tricedesigns.com/2012/08/15/open-with-in-ios-phonegap-apps/ nothing helps me.

in opinion following lines must adjusted:

uidocumentinteractioncontroller *controller = [uidocumentinteractioncontroller  interactioncontrollerwithurl:fileurl]; controller.delegate = self; controller.uti = uti; [controller retain];  cdvviewcontroller* cont = (cdvviewcontroller*)[ super viewcontroller ]; cgrect rect = cgrectmake(0, 0, cont.view.bounds.size.width, cont.view.bounds.size.height); [controller presentoptionsmenufromrect:rect inview:cont.view animated:yes]; 

have suggestions?

my current solution issue: replace

cgrect rect = cgrectmake(0, 0, cont.view.bounds.size.width, cont.view.bounds.size.height); 

with this

cgrect rect = cgrectmake(0, 0, 1500.0f, 50.0f); 

and works charm. mahendra liya (see comment on tricedesigns.com).


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -