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.
useinitwithframe
instead of init
uiview
s. 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