【发布时间】:2016-12-06 16:53:41
【问题描述】:
我的主视图控制器中有一个 imagePickerController,它允许用户选择图像。使用此图像,一些结果会加载到同一视图控制器的表视图中。
When a row in the table view is selected another table view controller is opened with a bunch of strings. When a row from this table VC is selected, another table view controller with a list of movies from TMDB api is loaded and then the user swipes to save a movie.
在我的应用中,核心数据有单张图片与一些电影相关的关系。
所以我想知道跟踪所选图像的最佳方法是什么。我知道 NSUserDefaults 不是最好的方法。
【问题讨论】:
-
对于那些选择objective-c或swift的人来说可能会有所帮助。
-
在得到 Objective-C 的答案后,请不要再将标签从 Objective-C 更改为 Swift。
标签: ios objective-c swift uitableview uiimagepickercontroller