Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经构建了一个演示应用程序,并且想知道现在是否有任何方法可以将这个应用程序更改为在应用程序的顶部菜单栏中具有方角?我已经看到其他具有此功能的应用程序,并且想知道是否有人可以为我指出如何实现此目的的正确方向。谢谢!
Before:
After:
在 iOS 6.0 或更高版本中,如果将状态栏样式设置为UIStatusBarStyleBlackOpaque,则会得到圆角。如果将状态栏样式设置为UIStatusBarStyleDefault或UIStatusBarStyleBlackTranslucent,则会得到方角。
UIStatusBarStyleBlackOpaque
UIStatusBarStyleDefault
UIStatusBarStyleBlackTranslucent