Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar orientation is not working properly in some projects #464

Closed
imranali123 opened this issue Oct 27, 2016 · 1 comment
Closed

Calendar orientation is not working properly in some projects #464

imranali123 opened this issue Oct 27, 2016 · 1 comment

Comments

@imranali123
Copy link

  • (FSCalendarOrientation)currentCalendarOrientation
    {
    CGFloat scale = [UIScreen mainScreen].scale;
    CGSize nativeSize = [UIScreen mainScreen].currentMode.size;
    CGSize sizeInPoints = [UIScreen mainScreen].bounds.size;
    FSCalendarOrientation orientation = scale * sizeInPoints.width == nativeSize.width ? FSCalendarOrientationPortrait : FSCalendarOrientationLandscape;
    return orientation;
    }
    The above method is working fine in sample projects. But when i integrated the calendar in my own project this method is not working well. If the orientation is Landscape this method is returning Portrait and if the orientation is Portrait this method is returning Landscape.
@WenchaoD
Copy link
Owner

WenchaoD commented Nov 4, 2016

Hi @imranali123 Could you share the information about the modal and iOS version of your device?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants