comparison ios/dw.m @ 2791:b62859fbd9a3

iOS: Fix dw_window_set_text() on a top-level window. This code was written before the layout reorganization so the code was not finding the navigation view that has the window title.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 14 Jul 2022 05:44:10 +0000
parents 56312f9c1d6c
children 9c6fdafd10be
comparison
equal deleted inserted replaced
2790:20d39af27aa4 2791:b62859fbd9a3
9562 item = _dw_box_item(handle); 9562 item = _dw_box_item(handle);
9563 } 9563 }
9564 else if([object isMemberOfClass:[DWWindow class]]) 9564 else if([object isMemberOfClass:[DWWindow class]])
9565 { 9565 {
9566 DWWindow *window = object; 9566 DWWindow *window = object;
9567 NSArray *array = [window subviews]; 9567 UIView *view = [[window rootViewController] view];
9568 NSArray *array = [view subviews];
9568 NSString *nstr = [NSString stringWithUTF8String:text]; 9569 NSString *nstr = [NSString stringWithUTF8String:text];
9569 9570
9570 [window setLargeContentTitle:nstr]; 9571 [window setLargeContentTitle:nstr];
9571 9572
9572 for(id obj in array) 9573 for(id obj in array)