3 구문 분석 신속한 사이의 코드 *** 코드가 빠른이 좋은 일하고스위프트 나는 오류가 난 2에 신속한 업데이트 한 후 쿼리
, 수의 세 가지 오류가 3
var nicknames = [String]()
var messages = NSArray()
var selectedmsg:PFObject!
query.findObjectsInBackground{
(objects, error) -> Void in
if error == nil
{
messages = objects! ***Cannot assign value of type '[PFObject]?' to type 'NSArray'***
for object in objects! {
self.nicknames.append(object.object(forKey: "userpointer")!.object(forKey: "nickname") as! String) ***Value of type 'Any' has no member 'object'***
}
self.selectedmsg = messages.object(at: (indexPath as NSIndexPath).row) as! PFObject
self.selectedmsg["file"]!.getDataInBackground{ ***Value of type 'Any' has no member 'getDataInBackground'***
누군가 제발 신속하게 같은 코드를 수정하는 데 도움이됩니다. 어떤 도움을 주시면 감사하겠습니다.
왜이 웹 사이트에 더 이상 답변이 없습니까? – Salah
어떻게 해결 했습니까? 동일한 문제가 있습니다. 두 번째 오류입니까? – saner
@saner pastebin.com에 오류가있는 코드 표시 – Salah