在 ios 中创建与此(附加图像)类似的 UI 的建议方法是什么
What's suggested approach to create UI similar to this (Attached Image) in ios
我在网上找到了这个UI,UI看起来很神奇,有没有制作这样东西的技巧。似乎是自定义的 UITableView。
非常感谢!
这是一个带有自定义背景图片的 UITableView
以及带有遮罩(用于日期和标签)的自定义图层。
Here's a library for generating tags, though you could easily just create the layers yourself. There's alot of answers on SO like this 将解释如何遮盖图层上的文本。一切都有纹理的外观是因为图层的不透明度不是 100%。
至于背景图像,我敢打赌第一个不包括背景单元格,只有显示背景的透明切口。其他单元格很可能在背景图像中具有相邻单元格 "background"(因为单元格不重叠)。根据 indexPath.row
是否均匀设置交替背景。
左侧的“0/2012”日期看起来像 UILabel
旋转了 90 度并描边了。
单元格的其余部分只是标准文本和图像。
我在网上找到了这个UI,UI看起来很神奇,有没有制作这样东西的技巧。似乎是自定义的 UITableView。
非常感谢!
这是一个带有自定义背景图片的 UITableView
以及带有遮罩(用于日期和标签)的自定义图层。
Here's a library for generating tags, though you could easily just create the layers yourself. There's alot of answers on SO like this 将解释如何遮盖图层上的文本。一切都有纹理的外观是因为图层的不透明度不是 100%。
至于背景图像,我敢打赌第一个不包括背景单元格,只有显示背景的透明切口。其他单元格很可能在背景图像中具有相邻单元格 "background"(因为单元格不重叠)。根据 indexPath.row
是否均匀设置交替背景。
左侧的“0/2012”日期看起来像 UILabel
旋转了 90 度并描边了。
单元格的其余部分只是标准文本和图像。