Questions tagged [ckasset]

CKAsset is a class of the CloudKit Framework

A CKAsset object represents a large file associated with a record. Use asset objects to incorporate external files—such as image, sound, video, text, and binary data files—into your app’s records.

Reference

39 questions
0
votes
1 answer

Fetch music file from Cloudkit

I try to convert the code which i use to fetch image asset to fetch mp3 file on cloudkit. However, i can't figure the data part. I'm using this library to play audio. It only has one class called "AudioPlayer" so if i want to play music on local…
Emre Önder
  • 2,408
  • 2
  • 23
  • 73
0
votes
1 answer

New "Non-file URL" Error In MacOS project Xcode8 Swift 3

I have some code that worked fine prior to upgrade to Swift 3 and xCode 8.0. print("Thumb", self.theTempPath!) video["videoThumbnail"] = CKAsset(fileURL: self.theTempPath! as URL) produces this in the Console Thumb…
Peter Wiley
  • 820
  • 7
  • 19
0
votes
0 answers

Issue Saving/Displaying CKAssets

I'm pretty new to swift, so please try to bear with me. I'm currently able to download CKRecords and insert them into an array, "birdFacts". Each record includes a few strings, an image (CKAsset), a date, and an int. When they initially download…
Alex
  • 141
  • 2
  • 10
0
votes
1 answer

CKQuery slow with CKAssets

When I fetch for records with fields that are Strings (or others) it takes under 1 second: let query = CKQuery(recordType: "Messages", predicate: NSPredicate(format: "TRUEPREDICATE")) NSLog("Started fetching") …
Nico Reese
  • 261
  • 6
  • 14
0
votes
2 answers

Images from CKAsset Load Out of Order in Swift

I am loading a tableview of images that are being fetched from a public CloudKit database as CKAssets. However, the images are loading out of order about two seconds until the correct image is loaded into the UIImageView of a custom UITableview…
0
votes
1 answer

Passing a CKAsset image through a segue to ViewController?

I have a simple TableView with text and an image being pulled from CloudKit. I'm trying to pass that data on to a detailViewController when selected, I can get the text, but I'm stuck on sending the image though prepareForSegue. I have a…
ALTVisual
  • 116
  • 10
0
votes
2 answers

Xcode: CKAsset in CloudKit

in my Code below, NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *localPath = [[paths objectAtIndex: 0] stringByAppendingPathComponent: @"temporary.png"]; NSLog(@"local path=%@",…
avocet
  • 1
0
votes
1 answer

Sharing CKAssets between users with CloudKit?

I want to allow my users to upload an image that they can share with other users. This could either go in their private or public storage, but in either case would need to be accessible via a URL. I'm wondering if this is possible, first and…
Andrew
  • 7,693
  • 11
  • 43
  • 81
0
votes
3 answers

Load CKAssets into UICollectionView async

Is there a way to load CKAsset photo into UICollectionView asynchronously ? At the moment, inside queryCompletionHandler from CKDatabase performQuery, I get list of CKRecords with CKAssets, and then set UICollectionView images to…
Lydon Ch
  • 8,637
  • 20
  • 79
  • 132
1 2
3