如何用图像和标签填充 UIView?

发布于 2024-10-27 11:50:30 字数 118 浏览 3 评论 0原文

我需要建立一个视图,在其中可以有比例的东西,例如小图像和高图像,下面有数字。 | ! ! | 假设较大的行作为整数,较小的行作为分区。 我想多次重复这样的场景。

有办法做到这一点吗?

谢谢,

I need to build a view where i can have a scale kind of thing such as the small and tall images below which there are numbers.
| ! ! |
assume the bigger line as the whole numbers and the smaller ones as partitions.
I want to replicate this kind of scenario many time.

Is there a way to do this??

Thanks,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

水晶透心 2024-11-03 11:50:30

在界面构建器中构建它并通过

UIView * v = [[[NSBundle mainBundle] loadNibNamed:@"MyView" Owner:nil] objectAtIndex:0];加载它

Build it in interface builder and load it by

UIView * v = [[[NSBundle mainBundle] loadNibNamed:@"MyView" owner:nil] objectAtIndex:0];

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文