swift2 - How do I make my navigation bar transparent in swift? -
i want make navigation controller this. main view should continue top.
but when trying implement result:
how can handle problem. want implement in first image. can help? thanks
i use in apps make navigationbar transparent (if navigationbar in uinavigationcontroller):
self.navigationcontroller?.navigationbar.setbackgroundimage(uiimage(), forbarmetrics: .default) self.navigationcontroller?.navigationbar.shadowimage = uiimage() self.navigationcontroller?.navigationbar.translucent = true
now can still add buttons , title navigationbar.
edit: swift 3 (thanks drbreakalot)
self.navigationcontroller?.navigationbar.setbackgroundimage(uiimage(), for: .default) self.navigationcontroller?.navigationbar.shadowimage = uiimage() self.navigationcontroller?.navigationbar.istranslucent = true
Comments
Post a Comment