如何用图像和标签填充 UIView?
我需要建立一个视图,在其中可以有比例的东西,例如小图像和高图像,下面有数字。 | ! ! | 假设较大的行作为整数,较小的行作为分区。 我想多次重复这样的场景。
有办法做到这一点吗?
谢谢,
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在界面构建器中构建它并通过
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];