• 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
Swift CloudKit perRecordProgressBlock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Swift CloudKit perRecordProgressBlock


  • Subject: Swift CloudKit perRecordProgressBlock
  • From: Mutlu Qwerty <email@hidden>
  • Date: Wed, 04 Mar 2015 18:43:06 -0500
  • Importance: Normal

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

  • Follow-Ups:
    • Re: Swift CloudKit perRecordProgressBlock
      • From: Marco S Hyman <email@hidden>
  • Prev by Date: Re: iCloud CloudKit in Swift. How do I code perRecordProgressBlock?
  • Next by Date: Re: Swift CloudKit perRecordProgressBlock
  • Previous by thread: Re: 'Cocoa/Cocoa.h' file not found
  • Next by thread: Re: Swift CloudKit perRecordProgressBlock
  • Index(es):
    • Date
    • Thread