How do I Code this block so that it will compile and run as described in the link below.
It will not compile giving the error message: "Missing argument for parameter #2 in call"
perRecordProgressBlock is declared as a var not a func
var counter: Int = 0
let myRecID: NSString = "00722371-b24d-421f-99c6-63d06226253e"
var myCKRecordID: CKRecordID! = CKRecordID(recordName: myRecID)
let myCKRecordIDArray: [CKRecordID!] = [myCKRecordID]
var myCKFetchRecordsOperation: CKFetchRecordsOperation = CKFetchRecordsOperation(recordIDs: myCKRecordIDArray)
myCKFetchRecordsOperation.perRecordProgressBlock { _, cloudKit_sProgress in
print("At perRecordProgressBlock \(counter++) \(cloudKit_sProgress)")
}//end of block
https://developer.apple.com/library/ios/documentation/CloudKit/Reference/CKFetchRecordsOperation_class/index.html#//apple_ref/occ/instp/CKFetchRecordsOperation/perRecordProgressBlock
thanks fritz, alex
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden