ios - 如何创建类似于 BBC 新闻应用程序中的 Glance?

标签 ios watchkit user-experience apple-watch xcode6.3

我正在研究BBC 新闻 App适用于Apple Watch。外观如下:

enter image description here

但是,当我查看 Glance Controller 的 Storyboard时,我可以看到只有这些选项可用,用于概览的顶部部分 :

enter image description here

看起来更类似于 BBC 新闻应用程序的是以下选项:

enter image description here

我认为他们可以更改左侧组的大小并添加代表红色条的图像。但是,当我尝试复制它时,我无法调整组的大小。

您认为他们是如何做到这一点的?

最佳答案

我认为实现这一目标的唯一方法是选择第一种安排。在单个组中,您将:

  • 添加一个固定宽度且相对高度为 1 的新组。将其背景颜色设置为红色。
  • 在新组后面添加多行标签 (lines = 0),以便标题跨多行。

更新:刚刚在 Xcode 中尝试了这种技术,并通过一些间距调整,我能够实现这一目标:

enter image description here

关于ios - 如何创建类似于 BBC 新闻应用程序中的 Glance?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30463142/

相关文章:

ios - self.navigationController PushViewController : animated: gives me a black screen

objective-c - 自动布局约束 - 键盘

android - AppStore 中有新版本时如何更新基于 Cordova 的应用程序?

swift - 确定 WKInterfaceLabel 的字体大小和粗细 - 等宽字体需要

ios - 如何为 Watch OS 2 更新 openParentApplication?

search-engine - 多语言网站的用户体验

user-interface - 交互设计、视觉设计、网页设计、UX 设计、UI 设计、UI 开发之间有什么区别?

javascript - 将 Cordova 版本 9.0.0 降级到 8.1.2 不起作用

ios - 在 Cordova/WatchKit 应用程序上导入 MMWormhole

css - 用户自定义 CSS : What can go wrong?