ios - how to get the default style of uinavigationbar for a uiview -
i trying make uiview default uinavigationbar in ios 8.
i don't want hardcode values take uinavigationbar color, height , width , border @ bottom , apply same custom uiview.
is there way can achieve ?
self.headerbar.backgroundcolor = self.navigationcontroller.navigationbar.backgroundcolor; i tried above didn't work.
k had combine following
[uicolor colorwithred:(247/255.0) green:(247/255.0) blue:(247/255.0) alpha:1];
for uiview colour had put in uiview added subview original view small height looks border , gave colour dark gray , alpha 0.4f. 1 thing note here border can created using layer default doens't take care of orientation changes.
as height width gave height width per superviews bounds custom navigation bar attached.
Comments
Post a Comment