Soumettre la recherche
Mettre en ligne
Persistencia de datos con Parse
•
Télécharger en tant que PPT, PDF
•
0 j'aime
•
667 vues
Alfonso Alba
Suivre
Presentación NSCoder Madrid Diciembre 2012 Persistencia de datos con Parse.
Lire moins
Lire la suite
Signaler
Partager
Signaler
Partager
1 sur 15
Télécharger maintenant
Recommandé
Windows Server 2012 Active Directory Recovery
Windows Server 2012 Active Directory Recovery
Serhad MAKBULOĞLU, MBA
ZendCon2010 Doctrine MongoDB ODM
ZendCon2010 Doctrine MongoDB ODM
Jonathan Wage
San Francisco Java User Group
San Francisco Java User Group
kchodorow
Doctrine MongoDB Object Document Mapper
Doctrine MongoDB Object Document Mapper
Jonathan Wage
Format xls sheets Demo Mode
Format xls sheets Demo Mode
Jared Bourne
Symfony2 from the Trenches
Symfony2 from the Trenches
Jonathan Wage
Symfony Day 2010 Doctrine MongoDB ODM
Symfony Day 2010 Doctrine MongoDB ODM
Jonathan Wage
Dependency Injection
Dependency Injection
Rifat Nabi
Recommandé
Windows Server 2012 Active Directory Recovery
Windows Server 2012 Active Directory Recovery
Serhad MAKBULOĞLU, MBA
ZendCon2010 Doctrine MongoDB ODM
ZendCon2010 Doctrine MongoDB ODM
Jonathan Wage
San Francisco Java User Group
San Francisco Java User Group
kchodorow
Doctrine MongoDB Object Document Mapper
Doctrine MongoDB Object Document Mapper
Jonathan Wage
Format xls sheets Demo Mode
Format xls sheets Demo Mode
Jared Bourne
Symfony2 from the Trenches
Symfony2 from the Trenches
Jonathan Wage
Symfony Day 2010 Doctrine MongoDB ODM
Symfony Day 2010 Doctrine MongoDB ODM
Jonathan Wage
Dependency Injection
Dependency Injection
Rifat Nabi
MongoDb and NoSQL
MongoDb and NoSQL
TO THE NEW | Technology
Litebox
Litebox
meli media
Softshake - Offline applications
Softshake - Offline applications
jeromevdl
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
Jose Luis Martínez
Mongo db query docuement
Mongo db query docuement
zarigatongy
PostgreSQL's Secret NoSQL Superpowers
PostgreSQL's Secret NoSQL Superpowers
Amanda Gilmore
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
ichikaway
jQuery's Secrets
jQuery's Secrets
Bastian Feder
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
Takahiro Inoue
MongoDB Oplog入門
MongoDB Oplog入門
Takahiro Inoue
Dev Jumpstart: Build Your First App with MongoDB
Dev Jumpstart: Build Your First App with MongoDB
MongoDB
How to calculate the optimal undo retention in Oracle
How to calculate the optimal undo retention in Oracle
Jorge Batista
Latinoware
Latinoware
kchodorow
MySQL flexible schema and JSON for Internet of Things
MySQL flexible schema and JSON for Internet of Things
Alexander Rubin
File System Operations
File System Operations
G.C Reddy
MongoDB全機能解説2
MongoDB全機能解説2
Takahiro Inoue
Database api
Database api
InternetDevels
与 PHP 和 Perl 使用 MySQL 数据库
与 PHP 和 Perl 使用 MySQL 数据库
YUCHENG HU
Paris js extensions
Paris js extensions
erwanl
Mongo db for C# Developers
Mongo db for C# Developers
Simon Elliston Ball
Git
Git
Alfonso Alba
Plantillajornadasversion2 100708010347-phpapp01
Plantillajornadasversion2 100708010347-phpapp01
Alfonso Alba
Contenu connexe
Tendances
MongoDb and NoSQL
MongoDb and NoSQL
TO THE NEW | Technology
Litebox
Litebox
meli media
Softshake - Offline applications
Softshake - Offline applications
jeromevdl
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
Jose Luis Martínez
Mongo db query docuement
Mongo db query docuement
zarigatongy
PostgreSQL's Secret NoSQL Superpowers
PostgreSQL's Secret NoSQL Superpowers
Amanda Gilmore
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
ichikaway
jQuery's Secrets
jQuery's Secrets
Bastian Feder
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
Takahiro Inoue
MongoDB Oplog入門
MongoDB Oplog入門
Takahiro Inoue
Dev Jumpstart: Build Your First App with MongoDB
Dev Jumpstart: Build Your First App with MongoDB
MongoDB
How to calculate the optimal undo retention in Oracle
How to calculate the optimal undo retention in Oracle
Jorge Batista
Latinoware
Latinoware
kchodorow
MySQL flexible schema and JSON for Internet of Things
MySQL flexible schema and JSON for Internet of Things
Alexander Rubin
File System Operations
File System Operations
G.C Reddy
MongoDB全機能解説2
MongoDB全機能解説2
Takahiro Inoue
Database api
Database api
InternetDevels
与 PHP 和 Perl 使用 MySQL 数据库
与 PHP 和 Perl 使用 MySQL 数据库
YUCHENG HU
Paris js extensions
Paris js extensions
erwanl
Mongo db for C# Developers
Mongo db for C# Developers
Simon Elliston Ball
Tendances
(20)
MongoDb and NoSQL
MongoDb and NoSQL
Litebox
Litebox
Softshake - Offline applications
Softshake - Offline applications
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
Mongo db query docuement
Mongo db query docuement
PostgreSQL's Secret NoSQL Superpowers
PostgreSQL's Secret NoSQL Superpowers
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
jQuery's Secrets
jQuery's Secrets
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
MongoDB Oplog入門
MongoDB Oplog入門
Dev Jumpstart: Build Your First App with MongoDB
Dev Jumpstart: Build Your First App with MongoDB
How to calculate the optimal undo retention in Oracle
How to calculate the optimal undo retention in Oracle
Latinoware
Latinoware
MySQL flexible schema and JSON for Internet of Things
MySQL flexible schema and JSON for Internet of Things
File System Operations
File System Operations
MongoDB全機能解説2
MongoDB全機能解説2
Database api
Database api
与 PHP 和 Perl 使用 MySQL 数据库
与 PHP 和 Perl 使用 MySQL 数据库
Paris js extensions
Paris js extensions
Mongo db for C# Developers
Mongo db for C# Developers
En vedette
Git
Git
Alfonso Alba
Plantillajornadasversion2 100708010347-phpapp01
Plantillajornadasversion2 100708010347-phpapp01
Alfonso Alba
Usuarios ipad
Usuarios ipad
Alfonso Alba
Perl6 expresiones regulares
Perl6 expresiones regulares
Alfonso Alba
Perl5 hashes
Perl5 hashes
Alfonso Alba
Bienvenido a la republica independiente de las pruebas unitarias con Core Data
Bienvenido a la republica independiente de las pruebas unitarias con Core Data
Alfonso Alba
En vedette
(6)
Git
Git
Plantillajornadasversion2 100708010347-phpapp01
Plantillajornadasversion2 100708010347-phpapp01
Usuarios ipad
Usuarios ipad
Perl6 expresiones regulares
Perl6 expresiones regulares
Perl5 hashes
Perl5 hashes
Bienvenido a la republica independiente de las pruebas unitarias con Core Data
Bienvenido a la republica independiente de las pruebas unitarias con Core Data
Similaire à Persistencia de datos con Parse
Introduction to Parse backend for mobile developers
Introduction to Parse backend for mobile developers
Grigor Yeghiazaryan
What's Parse
What's Parse
Tsutomu Ogasawara
Parse: 5 tricks that won YC Hacks
Parse: 5 tricks that won YC Hacks
Thomas Bouldin
Beginning icloud development - Cesare Rocchi - WhyMCA
Beginning icloud development - Cesare Rocchi - WhyMCA
Whymca
Dpilot Source Code With ScreenShots
Dpilot Source Code With ScreenShots
DeepAnshu Sharma
Dpilot - Source Code with Snapshots
Dpilot - Source Code with Snapshots
Kritika Phulli
Source Code for Dpilot
Source Code for Dpilot
Nidhi Chauhan
iOS App with Parse.com as RESTful Backend
iOS App with Parse.com as RESTful Backend
Stefano Zanetti
Separation of concerns - DPC12
Separation of concerns - DPC12
Stephan Hochdörfer
Introduction to Parse
Introduction to Parse
abeymm
DrupalJam 2018 - Maintaining a Drupal Module: Keep It Small and Simple
DrupalJam 2018 - Maintaining a Drupal Module: Keep It Small and Simple
Alexander Varwijk
Codeigniter : Two Step View - Concept Implementation
Codeigniter : Two Step View - Concept Implementation
Abdul Malik Ikhsan
jQuery Data Manipulate API - A source code dissecting journey
jQuery Data Manipulate API - A source code dissecting journey
Huiyi Yan
Webエンジニアから見たiOS5
Webエンジニアから見たiOS5
Satoshi Asano
HelsinkiJS meet-up. Dmitry Soshnikov - ECMAScript 6
HelsinkiJS meet-up. Dmitry Soshnikov - ECMAScript 6
Dmitry Soshnikov
iOS5 NewStuff
iOS5 NewStuff
deenna_vargilz
Introducing CakeEntity
Introducing CakeEntity
Basuke Suzuki
Moar tools for asynchrony!
Moar tools for asynchrony!
Joachim Bengtsson
Array of objects.pptx
Array of objects.pptx
RAGAVIC2
solving little problems
solving little problems
Austin Ziegler
Similaire à Persistencia de datos con Parse
(20)
Introduction to Parse backend for mobile developers
Introduction to Parse backend for mobile developers
What's Parse
What's Parse
Parse: 5 tricks that won YC Hacks
Parse: 5 tricks that won YC Hacks
Beginning icloud development - Cesare Rocchi - WhyMCA
Beginning icloud development - Cesare Rocchi - WhyMCA
Dpilot Source Code With ScreenShots
Dpilot Source Code With ScreenShots
Dpilot - Source Code with Snapshots
Dpilot - Source Code with Snapshots
Source Code for Dpilot
Source Code for Dpilot
iOS App with Parse.com as RESTful Backend
iOS App with Parse.com as RESTful Backend
Separation of concerns - DPC12
Separation of concerns - DPC12
Introduction to Parse
Introduction to Parse
DrupalJam 2018 - Maintaining a Drupal Module: Keep It Small and Simple
DrupalJam 2018 - Maintaining a Drupal Module: Keep It Small and Simple
Codeigniter : Two Step View - Concept Implementation
Codeigniter : Two Step View - Concept Implementation
jQuery Data Manipulate API - A source code dissecting journey
jQuery Data Manipulate API - A source code dissecting journey
Webエンジニアから見たiOS5
Webエンジニアから見たiOS5
HelsinkiJS meet-up. Dmitry Soshnikov - ECMAScript 6
HelsinkiJS meet-up. Dmitry Soshnikov - ECMAScript 6
iOS5 NewStuff
iOS5 NewStuff
Introducing CakeEntity
Introducing CakeEntity
Moar tools for asynchrony!
Moar tools for asynchrony!
Array of objects.pptx
Array of objects.pptx
solving little problems
solving little problems
Persistencia de datos con Parse
1.
Persistencia de datos
con Parse aalbagarcia@gmail.com @aalbagarcia
2.
Creando y guardando
objetos #pragma mark PTGroupDataSourceProtocol -(void) addGroup:(NSString *)group { PFObject *newGroup = [PFObject objectWithClassName:@"Group"]; [newGroup setObject:group forKey:@"name"]; [newGroup saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) { if(succeeded) { dispatch_async(dispatch_get_main_queue(), ^{ [self getGroupsAndReloadDataInBackground]; }); } }]; NSLog(@"Saving group %@", group); } Doc
3.
Creando y guardando
objetos – save – save: – saveInBackground – saveInBackgroundWithBlock: – saveInBackgroundWithTarget:selector: – saveEventually – saveEventually: Doc
4.
Borrando objetos - (void)tableView:(UITableView
*)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { PFObject *group = [groups objectAtIndex:indexPath.row]; [group deleteInBackgroundWithBlock:^(BOOL succeeded, NSError *error) { if(succeeded & !error) { NSMutableArray *newGroups = [groups mutableCopy]; [newGroups removeObjectAtIndex:indexPath.row]; groups = [newGroups copy]; dispatch_async(dispatch_get_main_queue(), ^{ [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade]; }); } }]; } }
5.
Creando y guardando
de objetos – delete – delete: – deleteInBackground – deleteInBackgroundWithBlock: – deleteInBackgroundWithTarget:selector: – deleteEventually
6.
Viendo los objetos
7.
8.
Relaciones - (void) addPerson:(NSDictionary
*)data { PFObject *group = [data objectForKey:@"group"]; PFObject *person = [PFObject objectWithClassName:@"Person"]; [person setObject:[data objectForKey:@"firstName"] forKey:@"firstName"]; [person setObject:[data objectForKey:@"lastName"] forKey:@"lastName"]; [person setObject:[data objectForKey:@"email"] forKey:@"email"]; [person setObject:[data objectForKey:@"twitter"] forKey:@"twitter"]; PFRelation *memberOf = [person relationforKey:@"memberOf"]; [memberOf addObject:group]; [person saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) { if(succeeded) { dispatch_async(dispatch_get_main_queue(), ^{ [self loadDataInBackground]; }); //We cannot create the inverse relation until the object is saved PFRelation *relation = [group relationforKey:@"members"]; [relation addObject:person]; [group saveInBackground]; } else { NSLog(@"Person could not be saved."); Doc } }]; API
9.
10.
Relaciones
Doc API
11.
La demo es
muy artesanal ¿Qué herramientas nos da parse?
12.
PFLoginViewController
Doc
13.
PGSignUpViewController
Doc
14.
PFQueryTableViewController
Doc
15.
PFImage PFImageView *imageView =
[[PFImageView alloc] init]; imageView.image = [UIImage imageNamed:@"..."]; // placeholder image imageView.file = (PFFile *)[someObject objectForKey:@"picture"]; // remote image [imageView loadInBackground]; Doc
Notes de l'éditeur
Comentar en la documentación cómo se borran los registros
Télécharger maintenant