【问题标题】:Append the results of NSFetchedResultController to an array swift将 NSFetchedResultController 的结果追加到数组 swift
【发布时间】:2017-06-14 16:41:56
【问题描述】:

我想在UITableview 的单独部分中显示NSFetchedresultController 的结果。

【问题讨论】:

    标签: ios arrays swift core-data


    【解决方案1】:

    你总是可以使用 NSFetchedResultsController 访问所有获取的对象

    self.yourFetchedResultsController.fetchedObjects
    

    您总是可以小心地打开 fetchedObjects

    if let arrayOfYourObjects = self.yourFetchedResultsController.fetchedObjects {
         otherArray.appendContentsOf(arrayOfYourObjects)
    }
    

    希望对你有帮助

    【讨论】:

      猜你喜欢
      • 2015-10-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-10
      • 2016-05-05
      相关资源
      最近更新 更多