- (void)viewDidLoad { [super viewDidLoad]; if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) { self.edgesForExtendedLayout = UIRectEdgeNone; self.navigationController.navigationBar.translucent=YES; }
I do not want my scrollView to be behind the default navigation bar. So I set self.edgesForExtendedLayout = UIRectEdgeNone ;.
This viewDidLoad is the mother viewDidLoad of my entire viewController.
It's good. But I like the translucent effect.
It seems that the translucent effect disappears when I set self.edgesForExtendedLayout to equal.
How to set the value to "none" and get the effect of translucency.


I think a good solution would be to organize a scroll attachment.
I did it
- (void)viewDidLoad { [super viewDidLoad]; if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) {
And here is what I got:

source share