Wednesday, 15 May 2013

ios - Adding UIView to window is not showing in ios8 -



ios - Adding UIView to window is not showing in ios8 -

i've been working 1 day on no solution.i added uiview window subview it's not showing on top of viewcontrollers in ios 8

uiview *topbarview = [[uiview alloc] init]; appdelegate *appdelegate = (appdelegate *)[[uiapplication sharedapplication] delegate]; [appdelegate.window addsubview:topbarview];

it's working in ios 7 , ios 6 perfectly.

there 2 things should change.

use initwithframe instead of init uiviews. give view non-zero frame takes space. or set autosizing mask. or give layout constraints. you should set rootviewcontroller uiwindow , add together view subview of window.rootviewcontroller.view.

ios

No comments:

Post a Comment