Here is what I have tried, what is the correct way to code this block?
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) var myProgress:
Double = 0.0 myCKFetchRecordsOperation.perRecordProgressBlock( {
(myCKRecordID, myProgress) -> Void in print("At
perRecordProgressBlock ") print(counter++) print(" ")
println(myProgress) })//end of block Here is the
reference:https://developer.apple.com/library/ios/documentation/CloudKit/Reference/CKFetchRecordsOperation_class/index.html#//apple_ref/occ/instp/CKFetchRecordsOperation/perRecordProgressBlock
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com
This email sent to [email protected]