Skip to content

Calendar orientation is not working properly in some projects #464

@imranali123

Description

@imranali123
  • (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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions