• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iCloud CloudKit in Swift. How do I code perRecordProgressBlock?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iCloud CloudKit in Swift. How do I code perRecordProgressBlock?


  • Subject: iCloud CloudKit in Swift. How do I code perRecordProgressBlock?
  • From: Mutlu Qwerty <email@hidden>
  • Date: Mon, 02 Mar 2015 14:21:59 -0500
  • Importance: Normal

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: iCloud CloudKit in Swift. How do I code perRecordProgressBlock?
      • From: Fritz Anderson <email@hidden>
  • Next by Date: 10.5 base sdk running on 10.10.2
  • Next by thread: Re: iCloud CloudKit in Swift. How do I code perRecordProgressBlock?
  • Index(es):
    • Date
    • Thread