在同一行上并排显示UITableViewCell(与“联系人”->“信息”中一样) [英] Displaying UITableViewCell's side by side, on the same row (As in Contacts -> Info)

查看:48
本文介绍了在同一行上并排显示UITableViewCell(与“联系人”->“信息”中一样)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果一个人导航到iPhone的Phone应用,然后转到Contacts-> Info(在任何联系人上)。您将在该联系人的底部看到同一行中有两个相邻的UITableViewCells。在这种情况下,它们是文本消息和添加到收藏夹

If one navigates to the iPhone's Phone app, then goes to Contacts -> Info (on any contact).. you will see at the bottom of the contact there are two adjacent UITableViewCells, on the same row. In this particular case, they are "Text Message" and "Add to Favorites"

如何实现这种布局?如果有任何例子,那就太好了。

How is this layout achieved? If there's any examples out there, that would be great.

推荐答案

我实现该方法的方法是创建一个透明的UITableViewCell,并将两个UIButton添加到该单元格中。这就是通讯录对我的作用。

The way I would implement it is to create a UITableViewCell that is transparent, and add two UIButtons to the cell. That's what it looks like Contacts does to me.

这篇关于在同一行上并排显示UITableViewCell(与“联系人”->“信息”中一样)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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