# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1616872716 0 # Node ID 010ae32a50674f85d161aeaf6a7488a9732bbe47 # Parent 5e454dfab0db9fbb2c3e36ee10601a79cf824f64 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. diff -r 5e454dfab0db -r 010ae32a5067 ios/dw.m --- 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) {