ios - WatchKit 为 Label 添加边距

标签 ios watchkit apple-watch wkinterfacelabel

有没有办法在 Watchkit 中为 WKInterfaceLabel 添加边距/填充? 使用 UIEdgeInsets 不起作用。

最佳答案

您应该创建一个 WKInterfaceGroup 并在组内添加 WKInterfaceLabel。您可以使用该组管理边距/填充。

enter image description here

关于ios - WatchKit 为 Label 添加边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29517866/

相关文章:

ios - CATransaction旋转层360度怪

ios - 检测设备是否支持电话?

sprite-kit - watchOS 3.0 在 SpriteKit 中检测表冠旋转

ios - WatchKit:什么是 "Kermit",这个控制台日志语句是什么意思?

swift - watchOS 2 上的最大内存使用量?

iOS - 使用 Swift 在每个表格 View 单元格中获取 JSON feed

ios - 清除节标题上方的 UITableViewCells

ios - WatchKit XCODE 6.3 问题

ios - WatchKit 模拟器不支持听写

ios - 如何预览 iOS 和 WatchOS 之间共享的 SwiftUI View ?