2016-04-25 10 views
1

Hallo hinzugefügt haben Viewcontroller Blick in UIWINDOWS wie untenUIAccessibility auf Subview UIWindow

[[[UIApplication sharedApplication] keyWindow] addSubview:self.myviewcontroller.view]; 

Aber jetzt MyViewController Ansicht UIAccessibility funktioniert nicht. Es bekommt, was auch immer hinter diesem Fenster ist.

Antwort

1

Ich dachte Lösung, wir sollten Unteransicht auf oberste Fenster hinzufügen.

 UIWindow* window = [UIApplication sharedApplication].keyWindow; 
    if (!window) 
     window = [[UIApplication sharedApplication].windows objectAtIndex:0]; 
    [[[window subviews] objectAtIndex:0] addSubview:self.myviewController.view];