swift2 - How do I make my navigation bar transparent in swift? -


i want make navigation controller this. main view should continue top. enter image description here

but when trying implement result: enter image description here

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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -