带顶部对齐的 Watchkit 多行标签 [英] Watchkit Multi-line label with Top Aligment

查看:28
本文介绍了带顶部对齐的 Watchkit 多行标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想要为顶部对齐的 tablerowcontroller 添加多行标签.唯一的对齐选项是左/右等.看起来它会自动将文本垂直居中.无论如何要强制顶部对齐?使用 iOS8/Xcode 6.3.2

Want to add a multi-line label to a tablerowcontroller with top alignment. The only alignment options are left/right etc. Looks like it automatically centers the text vertically. Anyway to force top alignment? Using iOS8/Xcode 6.3.2

推荐答案

Table Row Controller 是一个 Group.您可以将布局更改为垂直.

Table Row Controller is a Group. You can change the Group Layout to Vertical.

您还可以将一个插入另一个,并控制单独的布局.嵌套组可以帮助您微调您想要的布局:

You can also insert a Group into another Group, and control individual layout. Nested groups can help you to fine-tune the layout you desire:

水平组中嵌套一个垂直组来处理图标下的标签.将多行标签的 Position 设置为 left &顶部.

Nest a vertical group into the horizontal group to handle the label under the icon. Set the Position of the multiple lines label to left & top.

这篇关于带顶部对齐的 Watchkit 多行标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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