terryworona/TWMessageBarManager

How can I disable rotation mess ego to landscape?

Closed this issue · 1 comments

How can I disable rotation mess ego to landscape?

I do it with comment lines

  • (CGRect)orientFrame:(CGRect)frame
    {

// if (UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation) || UIDeviceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation))
// {
// frame = CGRectMake(frame.origin.x, frame.origin.y, frame.size.height, frame.size.width);
//

}
return frame;
}

#pragma mark - Notifications

  • (void)didChangeDeviceOrientation:(NSNotification *)notification
    {

// self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, [self statusBarFrame].size.width, self.frame.size.height);
// [self setNeedsDisplay];

}

But it will be née if you add this future like property