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.
我用arrayController 绑定实体和一个表。实体有名称和ID,但表格只显示名称,当我在表格中选择一个项目时如何获取实体的ID。
获取数组控制器的 selection [arrayController selection],将其转换为您的实体类,并询问它的 ID。
[arrayController selection]