Mercurial > dwindows
diff ios/dw.m @ 2401:010ae32a5067
iOS: Hide the UITransitionView that is attached to the UIWindow.
Probably I should be using this for some sort of transition before display,
but I am not sure how to do that yet... and its existance blocks access to
the displayed controls. I tried removing the view but that seems to prevent
us from getting the events for redisplay during rotation. So hide it.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 27 Mar 2021 19:18:36 +0000 |
parents | 5e454dfab0db |
children | b28852b35452 |
line wrap: on
line diff
--- a/ios/dw.m Fri Mar 26 00:22:26 2021 +0000 +++ b/ios/dw.m Sat Mar 27 19:18:36 2021 +0000 @@ -1115,6 +1115,13 @@ DWWindow *window = (DWWindow *)[[self view] window]; NSArray *array = [window subviews]; DWView *view = [array firstObject]; + /* Hide the UITransitionView which is blocking the screen... + * This is probably not the correct solution, but it solves the + * problem for the moment. Figure out what to do with this view. + */ + id object = [array lastObject]; + if(![object isMemberOfClass:[DWView class]]) + [object setHidden:YES]; [view setFrame:[window frame]]; [view windowResized:[window frame].size]; } @@ -3373,14 +3380,14 @@ /* Internal function to create a basic button, used by all button types */ HWND _dw_internal_button_new(const char *text, ULONG cid) { - DWButton *button = [[DWButton alloc] init]; + DWButton *button = [[DWButton buttonWithType:UIButtonTypeRoundedRect] retain]; if(text) { [button setTitle:[NSString stringWithUTF8String:text] forState:UIControlStateNormal]; } [button addTarget:button action:@selector(buttonClicked:) - forControlEvents:UIControlEventPrimaryActionTriggered]; + forControlEvents:UIControlEventTouchUpInside]; [button setTag:cid]; if(DWDefaultFont) {