yackle / CLImageEditor

MIT License
2.21k stars 573 forks source link

Bug in iOS 8 when run CLImageEditor from landscape mode. #81

Closed DimonDeveloper closed 7 years ago

DimonDeveloper commented 9 years ago

ios simulator screen shot dec 20 2014 1 44 29 pm

Done button beyond the screen and imageview off-center

yackle commented 9 years ago

Currently, device rotating is not supported. Of course it is contains as my tasks. But I can't state any definite date when it will be done. Thanks!

patelmayank commented 9 years ago

+1

Tippit commented 9 years ago

+1

doticca commented 7 years ago

+1

gavla commented 7 years ago

+1

gavla commented 7 years ago

If you embed in a UINavigation controller before before presenting CLImageEditor it will control the rotation for you and fix this issue you just have to change shouldAutorotate to YES like below

 - (BOOL)shouldAutorotate
{
    return YES;
}

In CLImageEditor.m

yackle commented 7 years ago

please try #183 changes.

phanibob7 commented 7 years ago

For this we need to make the presenting view controller portrait before presenting editor.

    let value = UIInterfaceOrientation.portrait.rawValue
    UIDevice.current.setValue(value, forKey: "orientation")