简体   繁体   English

如何在WatchKit上创建不同的上下角半径?

[英]How to create top and bottom corner radius different on WatchKit?

I need to set a corner radius to 6 on top of WKInterfaceGroup and set to 0 on bottom. 我需要在WKInterfaceGroup顶部将拐角半径设置为6,在底部将其设置为0。 Is there a tips or anything ? 有提示或其他吗?

Thanks 谢谢

Example : http://imgur.com/aDASBNy 范例: http//imgur.com/aDASBSBNy

Since many elements (images eg) can't be given a border radius in watchOS, you should use groups with images as their only element. 由于watchOS中无法为许多元素(例如,图像)提供边界半径,因此您应该使用带有图像的组作为其唯一元素。 In order to achieve two different border sizes, try using two groups with two different border sizes which overlap themselves, so that one side of the border isn't visible because it's overlapped by the other group. 为了获得两个不同的边框大小,请尝试使用两个具有彼此重叠的不同边框大小的组,以使边框的一侧不可见,因为边框被另一组覆盖。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 具有不同角半径的WatchKit WKInterfaceGroup - WatchKit WKInterfaceGroup With Different Corner Radius 使用圆角半径从上到下创建动画 UIView - Create Animated UIView from top to bottom with corner radius 如何仅创建具有左上角和左下角半径的圆角UIButton - How to create rounded UIButton with top-left & bottom-left corner radius only 如何在 UIImageView 中实现底部自定义曲线和顶部角半径? - How to Achieve bottom custom Curve and top Corner Radius in UIImageView? UITextField仅在顶部或底部具有拐角半径 - UITextField with corner radius only on top or bottom 拐角半径仅适用于视图的左上角和左下角 - Corner radius only for top and bottom left corner of a view 如何在UIImageView的左上角和右下角创建UIButton - How to create UIButton in UIImageView's top left corner and bottom right corner ios - 如何在iOS Swift中将不同的角半径应用于UIView的不同角? - How to apply different corner radius to different corners of UIView in iOS Swift? 如何在 UIView 中为左上角和右上角的圆角半径仅设置顶部、左侧和右侧的边框? - how to set boarder for only top, left and right with corner radius with top-left and top-right in UIView? 图像角半径仅左下角 - image corner radius only bottom left and right
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM