Xamarin 中的 WKInterfaceLabel 多行
WKInterfaceLabel multiple lines in Xamarin
我正在 Xamarin 中为 Apple Watch 制作一个应用程序。我的 table 行中有一个 WKInterfaceLabel
。我可以显示文本,但我希望它显示在 2 行上(如果 space 不够显示在 1 行上)。我怎样才能做到这一点?
我解决了:对于使用 Xamarin 的人,右键单击您的故事板文件,然后在 Xcode Interface Builder 中打开它。单击标签,然后将 "Lines" 属性 设置为 2(或更多)。并确保它的大小设置为 "Size to fit content",与任何父级相同 container/group。
我正在 Xamarin 中为 Apple Watch 制作一个应用程序。我的 table 行中有一个 WKInterfaceLabel
。我可以显示文本,但我希望它显示在 2 行上(如果 space 不够显示在 1 行上)。我怎样才能做到这一点?
我解决了:对于使用 Xamarin 的人,右键单击您的故事板文件,然后在 Xcode Interface Builder 中打开它。单击标签,然后将 "Lines" 属性 设置为 2(或更多)。并确保它的大小设置为 "Size to fit content",与任何父级相同 container/group。