You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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.
The text was updated successfully, but these errors were encountered:
{
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.
The text was updated successfully, but these errors were encountered: