本文介绍了想要创建一个很酷的静态UI但是:“静态表视图只有效...”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我创建了一个类似的视图:

So I'm creating a View like :

为此,我试图使用一个故事板,我添加2个TableViews(都作为'Static Cells'),然后我直接从故事板手动添加我的Cell内容......

For this I'm trying to use a Storyboard in wich I add 2 TableViews (both as 'Static Cells') and then I manually add my Cell content directly from the storyboard...

在我的故事板中,它看起来很棒,但是当我构建时,我得到:

In my storyboard it looks great but when I build I get :

如果你伙计们对这个问题有任何想法。

If you guys have any ideas on this issue.

谢谢!

推荐答案

在视图中添加UITableViewController。它应该持有UITableView。将其定义为静态表视图,并将其分组。添加两个部分。一个有一行,另一个有两行。再次将标签按钮和滑块添加到行中。

Add a UITableViewController to your view. It should hold a UITableView. Define this as a static table view, and make it grouped. Add two sections. One with one row, and the other with two rows. Add your Labels buttons and sliders to the rows again.

我不知道为什么你想在这里有两个UITableView?

I do not know why you would want to have two UITableViews here?

这篇关于想要创建一个很酷的静态UI但是:“静态表视图只有效...”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 23:10