All Projects → Yalantis → Cloudkit Demo.objective C

Yalantis / Cloudkit Demo.objective C

Licence: mit

Projects that are alternatives of or similar to Cloudkit Demo.objective C

Cloudkit Demo.swift
Stars: ✭ 244 (+83.46%)
Mutual labels:  cloudkit, icloud, demo, yalantis
Synckit
Automatic CloudKit synchronization
Stars: ✭ 280 (+110.53%)
Mutual labels:  cloudkit, icloud
Cirrus
☁️ Simple CloudKit sync for Codable Swift models
Stars: ✭ 65 (-51.13%)
Mutual labels:  cloudkit, icloud
Cloudkitgdpr
Framework for allowing users to manage data stored in iCloud
Stars: ✭ 126 (-5.26%)
Mutual labels:  cloudkit, icloud
Ricloud
Python client for Reincubate's ricloud API. Yes, it works with iOS 14 & iPhone 12 backups!
Stars: ✭ 71 (-46.62%)
Mutual labels:  cloudkit, icloud
Taobaokeapi
淘宝客API演示
Stars: ✭ 128 (-3.76%)
Mutual labels:  demo
React Responsive Carousel
React.js Responsive Carousel (with Swipe)
Stars: ✭ 1,962 (+1375.19%)
Mutual labels:  demo
Xrichtext
一个Android富文本类库,支持图文混排,支持编辑和预览,支持插入和删除图片。
Stars: ✭ 1,639 (+1132.33%)
Mutual labels:  demo
Vue2 Scaffold
The best scaffold for Vue 2.x based on vue-cli#vuejs-templates/webpack
Stars: ✭ 125 (-6.02%)
Mutual labels:  demo
Swift project
原OC项目用swift实现,纯swift项目,可作为学习swift的demo,包含多个自定义控件,并且进行封装网络请求库,结构清晰。
Stars: ✭ 133 (+0%)
Mutual labels:  demo
Webpack Demo
webpack 4 config. demo ⚙️
Stars: ✭ 131 (-1.5%)
Mutual labels:  demo
Widgetexamples
A demo project showcasing different types of Widgets created with SwiftUI and WidgetKit.
Stars: ✭ 125 (-6.02%)
Mutual labels:  demo
Todayx
🌈Flutter App:🎊「今日份的X」(每天推荐一个:图片、诗歌、名言、音乐、乐评、高等数学、两种配色、化学方程式、Github Repo、知乎问题、文章)
Stars: ✭ 128 (-3.76%)
Mutual labels:  demo
Cute Deferred Shading
Cute little deferred shading implementation.
Stars: ✭ 129 (-3.01%)
Mutual labels:  demo
Mern Authentication
MERN stack authentication boilerplate: password reset, email verification, server sessions, redux, hooks and docker for dev and prod.
Stars: ✭ 129 (-3.01%)
Mutual labels:  demo
Redux Framework
Redux is a simple, truly extensible options framework for WordPress themes and plugins!
Stars: ✭ 1,602 (+1104.51%)
Mutual labels:  demo
Scrapy demo
all kinds of scrapy demo
Stars: ✭ 128 (-3.76%)
Mutual labels:  demo
Ciapre Xcode Theme
An easy on the eyes Xcode color scheme, ported from Ciapre Sublime Text.
Stars: ✭ 130 (-2.26%)
Mutual labels:  demo
Demo Twilio Backend Nodejs
A sample backend that demonstrates how to generate a Virgil JWT and Twilio token used for authentication with the Virgil and Twilio services
Stars: ✭ 128 (-3.76%)
Mutual labels:  demo
Aixijs
AIXIjs - General Reinforcement Learning in the Browser
Stars: ✭ 128 (-3.76%)
Mutual labels:  demo

CloudKit

CloudKit, Apple’s remote data storage service, provides a possibility to store app data using users’ iCloud accounts as a back-end storage service.

Here is the same demo on Swift.

Requirements

iOS 8.0

How To Get Started

  • Set up Cloud/CloudKit at iOS Developer Portal.
  • Insert a bundle identifier and choose a corresponding Team.
  • Select Capabilities tab in the target editor, and then switch ON the iCloud.

For more detailed information take a look at our article.

Usage

Retrieve existing records

NSPredicate *predicate = [NSPredicate predicateWithValue:YES];
CKQuery *query = [[CKQuery alloc] initWithRecordType:@"RecordType" predicate:predicate];
    
[[CKContainer defaultContainer].publicCloudDatabase performQuery:query
                                                    inZoneWithID:nil
                                                completionHandler:^(NSArray *results, NSError *error) {
                                                  
}];

Create a new record

CKRecord *record = [[CKRecord alloc] initWithRecordType:@"RecordType"];
record[@"key"] = @"Some data";
[[CKContainer defaultContainer].publicCloudDatabase saveRecord:record completionHandler:^(CKRecord *record, NSError *error) {

}];

Update the record

CKRecordID *recordID = [[CKRecordID alloc] initWithRecordName:@"recordId"];
[[CKContainer defaultContainer].publicCloudDatabase fetchRecordWithID:recordID completionHandler:^(CKRecord *record, NSError *error) {
        
  if (error) {
    return;
  }
        
  record[@"key"] = @"Some data";
  [[CKContainer defaultContainer].publicCloudDatabase saveRecord:record completionHandler:^(CKRecord *record, NSError *error) {

  }];
}];

Remove the record

CKRecordID *recordID = [[CKRecordID alloc] initWithRecordName:@"recordId"];
[[CKContainer defaultContainer].publicCloudDatabase deleteRecordWithID:recordID completionHandler:^(CKRecordID *recordID, NSError *error) {

}];

Contacts

Yalantis

Follow Yalantis on Twitter (@Yalantis) and [Facebook] (https://www.facebook.com/Yalantis?ref=ts&fref=ts)

License

The MIT License (MIT)

Copyright © 2015 Yalantis

Permission is hereby granted free of charge to any person obtaining a copy of this software and associated documentation files (the "Software") to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].