changeset 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 20d39af27aa4
children 9c6fdafd10be
files ios/dw.m
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ios/dw.m	Wed Jul 13 14:57:38 2022 +0000
+++ b/ios/dw.m	Thu Jul 14 05:44:10 2022 +0000
@@ -9564,7 +9564,8 @@
     else if([object isMemberOfClass:[DWWindow class]])
     {
         DWWindow *window = object;
-        NSArray *array = [window subviews];
+        UIView *view = [[window rootViewController] view];
+        NSArray *array = [view subviews];
         NSString *nstr = [NSString stringWithUTF8String:text];
 
         [window setLargeContentTitle:nstr];