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.
我通过 C# 制作了我的 UI,而不是使用 xcode。我在我的视图(主屏幕)中添加了一个 UITableview,并希望在表格的每个单元格中插入一个子视图。问题是我不能单独访问这些行?如何获取行索引号并向该行添加子视图?
使用 UICollectionView 和自定义单元格子视图。如果操作正确,最接近流式布局。
或者为 CellForRowAtIndexPath 委托调用返回自定义 UITableViewCell 单元格。(C# 是 Tableview 数据源上的 GetCell())
您需要尝试在 xcode 中设计视图,并了解 iOS 中使用的 springs 和 struts 或自动布局策略。