[英]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.