I won’t say much nonsense, I will just post to you the core code of the navigationController in iOS to remove the background image and the bottom line. The key code is as follows:
//Remove the background picture
Copy the codeThe code is as follows:
[ setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];
//Remove the bottom line
Copy the codeThe code is as follows:
[ setShadowImage:[[UIImage alloc] init]];
The above is the core code for removing background images and bottom lines in iOS navigationController introduced to you. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support for my website!