Rameez Hussain
Rameez Hussain

Reputation: 6764

UINavigationBar setTranclucent not working

I have a UIViewController where the UINavigationBar is pushing all the children views down. I have tried using this code in viewDidLoad and in viewWillAppear methods:

self.navigationController.navigationBar.translucent = YES;

But this doesn't seem to be working. Where am I going wrong?

Upvotes: 0

Views: 61

Answers (1)

Kumar KL
Kumar KL

Reputation: 15335

Try with the Extend Edges property in the Attributes inspector also.

Uncheck these (under top bars & under bottom bars )

enter image description here

Upvotes: 1

Related Questions