关于iPhone系统statusbar

1. 进入系统相机时, 系统会自动隐藏statusbar,  不需要人工去调用hidden


2. 设置statusbar的隐藏和显示

 [[UIApplicationsharedApplication] setStatusBarHidden:NO];

[[UIApplicationsharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaqueanimated:NO];    //设置样式


3. app启动闪屏时是否显示statusbar,  在info.plist文件中设置UIStatusBarHidden  


4. statusbar占据了20个像素的高度

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
<!DOCTYPE html> <html> <head> <title>iPhone - The Ultimate Smartphone</title> <style> body { font-family: Arial, sans-serif; background-color: #f2f2f2; } header { background-color: #333; color: #fff; padding: 20px; text-align: center; } nav { background-color: #fff; padding: 10px; text-align: center; } nav ul { list-style-type: none; margin: 0; padding: 0; display: inline-block; } nav li { display: inline; margin-right: 20px; } nav a { color: #333; text-decoration: none; padding: 10px; } nav a:hover { background-color: #333; color: #fff; } main { margin: 20px; background-color: #fff; padding: 20px; } h1 { font-size: 36px; margin-top: 0; } h2 { font-size: 24px; margin-top: 0; } img { max-width: 100%; height: auto; } p { line-height: 1.5; } footer { background-color: #333; color: #fff; padding: 20px; text-align: center; } </style> </head> <body> <header> <h1>iPhone - The Ultimate Smartphone</h1> </header> <nav> <ul> <li><a href="#">Home</a></li> <li><a href="#">Features</a></li> <li><a href="#">Models</a></li> <li><a href="#">Buy Now</a></li> </ul> </nav> <main> <section> <h2>Welcome to iPhone</h2> <p>The iPhone is a line of smartphones designed and marketed by Apple Inc. The first iPhone was announced on January 9, 2007, and was later released on June 29, 2007. Since then, Apple has released many new models of the iPhone, each with new features and improvements.</p> <img src="iphone.jpg" alt="iPhone"> </section> <section> <h2>Features of iPhone</h2> <ul> <li>Retina display</li> <li>Touch ID fingerprint sensor</li> <li>Face ID facial recognition</li> <li>Wireless charging</li> <li>A13 Bionic chip</li> <li>Water and dust resistance</li> <li>iOS operating system</li> <li>And much more!</li> </ul> </section> <section> <h2>Models of iPhone</h2> <p>Apple currently offers several models of the iPhone, including:</p> <ul> <li>iPhone SE</li> <li>iPhone 11</li> <li>iPhone 11 Pro</li> <li>iPhone 12</li> <li>iPhone 12 Pro</li> <li>And more!</li> </ul> </section> <section> <h2>Buy iPhone Now</h2> <p>Ready to get your hands on the ultimate smartphone? Visit Apple's website to buy the iPhone now!</p> <a href="https://www.apple.com/iphone/">Buy Now</a> </section> </main> <footer> <p>© 2021 iPhone</p> </footer> </body> </html>

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值