WKInterfaceGroup 底角半径 [英] WKInterfaceGroup bottom corner radius

查看:23
本文介绍了WKInterfaceGroup 底角半径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为 WKInterfaceGroup 设置左下角和右下角的圆角半径.我只能设置一个半径值,这会改变所有角的半径.我也找不到访问 CALayer 以在那里指定它的方法.

I am trying to set the corner radius for the bottom left and bottom right corners for a WKInterfaceGroup. I was able to set only one single radius value and that would change it for all the corners. I couldn't find a way to access the CALayer to specify it there either.

有没有办法做到这一点?

Is there a way this can be done?

谢谢!

(该组将包含 2 个标签,并将与动态通知界面中的窗扇联系.)

(The group would contain 2 labels and would be in contact with the sash in the dynamic notification interface.)

推荐答案

您询问了 WKInterfaceGroup,但从您对 @BalestraPatrick 的回复来看,您似乎是专门尝试在长视通知中实现底角圆整,对吗?

You asked about WKInterfaceGroup, but from your response to @BalestraPatrick it sounds like you are specifically trying to achieve bottom corner rounding in the long-look notification, correct?

如果是这样,则是当前测试版中的一个错误.

If so, it's a bug in the current beta.

假设您可以登录,以下是描述该错误的开发者论坛:https://devforums.apple.com/message/1098796

Assuming you can sign in, here's a developer forum describing the bug: https://devforums.apple.com/message/1098796

要点是:类别(腰带颜色所在的位置)上曾经有一个布尔值来抵消内容(这就是 Apple 的文档在此处所指的内容 https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/BasicSupport.html) 但他们从 Beta 5 中删除了它.现在,您应该能够设置通知控制器本身的背景颜色,它会为您进行四舍五入.只是还没有工作.

The gist is: there used to be a boolean on the Category (where sash color is) to offset content (that's what Apple's Documentation is referring to here https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/BasicSupport.html) but they took it out of Beta 5. Now, you are supposed to be able to set the background color of the notification controller itself and it will do the rounding for you. Just doesn't work yet.

我已经向 Apple 记录了一个错误,并将其作为重复"关闭 - 这意味着这是一个错误,他们知道它.随意再次登录 - 它增加了他们队列中错误的优先级:)

I've logged a bug with Apple and had it closed as a "duplicate" - which means it's a bug and they know about it. Feel free to log again - it increases the priority of the bug in their queue :)

这篇关于WKInterfaceGroup 底角半径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆