Swift 2 ( executeFetchRequest ) : error handling

前端 未结 5 1883
我寻月下人不归
我寻月下人不归 2020-11-27 07:21

I got some issue with the code that I can\'t figure out. After I installed Xcode 7 beta and convert my swift code to Swift 2

Code:

o         


        
5条回答
  •  再見小時候
    2020-11-27 08:03

    You could try this code:

    let  result = (try! self.manageContext.executeFetchRequest(FetchRequest)) as! [NSManageObjectClass]
    

提交回复
热议问题