Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
想象一下,您的表 viewController 并且您在其中一行中有一个名为“settingDate”的元素,我想在“settingDate”行的左侧添加日历图标,但它应该在里面显示当前日期?有什么想法可以实施吗?
将不带数字的日历图标的图像设置为表格单元格的图像视图。然后添加一个标签作为 cell.imageView 的子视图,并使用 NSDate 更新标签的文本。