ios - Issue with Aviary SDK device orientation -
i trying lunch aviary sdk photo editor in landscape mode , works on ipad !! , app crashes on iphone due problem :
'uiapplicationinvalidinterfaceorientation', reason: 'supported orientations has no common orientation application, , shouldautorotate returning yes'
i tried different ways no success :
- (ibaction)photoeditor:(id)sender { [self displayeditorforimage:imagebg.image]; } - (void)displayeditorforimage:(uiimage *)imagetoedit { //set device orientation [afphotoeditorcustomization setsupportedipadorientations:@[@(uiinterfaceorientationlandscaperight), @(uiinterfaceorientationlandscapeleft) ]]; afphotoeditorcontroller *editorcontroller = [[afphotoeditorcontroller alloc] initwithimage:imagetoedit]; [editorcontroller setdelegate:self]; [self presentviewcontroller:editorcontroller animated:yes completion:nil]; }
none of these codes worked :
1-
- (bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation { return ( (interfaceorientation == uiinterfaceorientationlandscaperight) || (interfaceorientation == uiinterfaceorientationlandscapeleft) ); }
2-
-(bool)shouldautorotate { return uiinterfaceorientationmasklandscaperight | uiinterfaceorientationmasklandscapeleft;; }
3-
-(nsuinteger)supportedinterfaceorientations { return uiinterfaceorientationlandscaperight | uiinterfaceorientationlandscapeleft; // add other want } -(bool)shouldautorotate { //tried no , return yes ; }
my app running on ios 6 , appreciate
from aviary faq:
q: how change supported orientations editor?
a: on iphone form factor, editor restricted portrait presentation only. [...]
that means want impossible. editor must run in portrait mode.
Comments
Post a Comment