GiFHUD icon indicating copy to clipboard operation
GiFHUD copied to clipboard

Issue while changing Orientation

Open uditbatra opened this issue 9 years ago • 3 comments

Hi,

I appreciate your work.

There is issue while we rotate the device in case.

Please resolve this.

uditbatra avatar May 13 '16 12:05 uditbatra

I solved this by adding:

#pragma mark Orienation

-(void) layoutSubviews { [super layoutSubviews]; // your code here... [self setCenter:APPDELEGATE.window.center]; self.overlayView.frame = APPDELEGATE.window.frame; }

uditbatra avatar May 13 '16 13:05 uditbatra

Hi @uditbatra This didn't solve the orientation issue, the -(void) layoutSubviews doesn't get called. Any suggestions? Thank you

432player avatar Jul 10 '17 07:07 432player

It worked after setting setNeedsLayout. Great job @uditbatra

432player avatar Jul 10 '17 07:07 432player