问题描述
在Facebook的iPhone应用程序中,左侧有一个slideout视图,显示一个 UITableView
。
On the Facebook iPhone app, there is a slideout view on the left side which shows a UITableView
.
我试图复制这张表的外观,每个单元格都有一个似乎是一个自定义边框(看起来像一个非常苗条的浅灰色和黑色线条? )。另外,当选择单元格时,单元格突出显示为深灰色,而不是默认的蓝色。
I'm trying to copy the look of this table, with each cell having what seems to be a customized border (looks like a very slim light grey and black line?). In addition, when selecting the cell, the cell is highlighted a dark grey, rather than the default blue.
我尝试搜索stackoverflow,确实有一个类似的问题,但只有两个答案回复使用 Three20
库。
I tried searching on stackoverflow and indeed there was a similar question, but the only two responses replied to use the Three20
library.
我想知道如何使用 UIKit
实现同样的外观,而不必使用 Three20
库。
I would like to know how to achieve this same look with UIKit
and not having to use the Three20
library.
有关如何重现这种特定风格的 UITableViewCell
将不胜感激!
Any help on how to reproduce this specific style of UITableViewCell
would be greatly appreciated!
编辑#1:为了澄清,我知道如何使 UITableViewCells
自己,与图像和文本。我不知道该怎么做的部分是定制边框和选择颜色,使其看起来像Facebook示例图像。
EDIT #1: To clarify, I know how to make the UITableViewCells
themselves, with the images and the text. The part I don't know how to do is to customize the borders and the selection color to make it look like the Facebook example image.
编辑#2:只是为了请确定,我也没有问如何滑出视图。我只是根据Facebook iphone应用程序的屏幕截图来询问如何对表格进行风格化。 :)
EDIT #2: Just to be sure, I'm also not asking how to make a slide out view. I'm merely asking how to style the table according to the screenshot below of the Facebook iphone app. :)
谢谢!
推荐答案
可以通过使用自定义行和动画的图像进行滑动效果
It can be done by using images for custom rows and animation for its sliding effect
这篇关于样式UITableViewCell(试图复制Facebook iPhone App Look)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!