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.
我正在尝试为我的应用程序制作一些自定义艺术作品,这些艺术作品将显示在应用程序的顶部,就在状态栏的正上方。
为了使艺术看起来不错,我想知道下图所示的应用程序部分的圆角半径是多少:
我想知道iOS使您的应用程序适合的半径是多少。
谢谢,
尔威软件
它是关于4.5。我截取了模拟器的屏幕截图,放大了大约 2000%,并比较了各种值以将其拨入。
4.5
如果您在 Interface Builder 中创建 UIView 并layer.cornerRadius在 User Defined Runtime Attributes 中指定 ,那么 的值5就足够接近了。
layer.cornerRadius
5