Push guide
Quick Start Guide
This step-by-step guide will get you up and running using the Parse SDK in your mobile app.
1
Choose your platform
iOS
Android
JavaScript
Windows 8
New Project
Existing Project
2
Select your Parse app
Nanjing
3
Download & install the SDK
-
Download the SDK:
SDK files for existing iOS projects (.zip) - Make sure you are using the latest version of Xcode (v4.5+) and targeting iOS 4.3 or higher.
- Unzip the file you downloaded and drag the
Parse
folder into your Xcode project folder target. - Make sure the "Copy items to destination's group folder" checkbox is checked. (Show Me)
- It should now look something like this.
- Click on the Targets → Your app name → and then the 'Build Phases' tab and then expand 'Link Binary With Libraries' as shown.
- Click the plus button in the bottom left of the 'Link Binary With Libraries' section. (Show Me)
- Add the following libraries:
- AudioToolbox.framework (Show Me)
- Accounts.framework
- AdSupport.framework
- CFNetwork.framework
- CoreGraphics.framework
- CoreLocation.framework
- libsqlite3.dylib
- libz.1.1.3.dylib
- MobileCoreServices.framework
- QuartzCore.framework
- Security.framework
- Social.framework
- StoreKit.framework
- SystemConfiguration.framework
- AudioToolbox.framework (Show Me)
-
Open up your
AppDelegate.m
file and add the following import to the top of the file:#import <Parse/Parse.h>Then paste the following inside the
application:didFinishLaunchingWithOptions:
function:[Parse setApplicationId:@"B7q3ZUcn1mOISdkSCx01wR2JbZsgL3BgSveErGNL" clientKey:@"wMiv55odJnH0BUmr2HbjaXsatAxKeoKneCr2wBbp"];
- Compile and run.
- If you're targeting iOS versions less than 6.0, you'll need to make AdSupport.framework, Social.framework, and Accounts.framework optionally-linked. (Show Me)
- If you're targeting iOS versions less than 5.0, you'll need to add the "-fobjc-arc" flag to the "Other Linker Flags" entry in your target build settings. (Show Me)
4
Test the SDK
- First make sure to include our SDK libraries from your .h file: (Show Me)
#import <Parse/Parse.h>
-
Then copy and paste this code into your app, for example in the
viewDidLoad
method (or inside another method that gets called when you run your app): (Show Me)
PFObject
*testObject = [PFObject
objectWithClassName
:
@"TestObject"
];
[testObject
setObject
:
@"bar"
forKey
:
@"foo"
];
[testObject
save
];
Run your app. A new object of class TestObject
will be sent to the Parse Cloud and saved. When you're ready, click the button below to test if your data was sent.
5
Learn the SDK
Dive into our docs
Start learning about everything you can do with Parse!
Use the dashboard
Start controlling your apps, managing your settings, and more.
Follow our tutorials
-
iOS Push NotificationsThis tutorial provides you with a step-by-step guide to configuring your iOS application for push.
-
Login and Signup ViewsLearn how to setup the iOS login and signup view controllers.
-
AnyWallExplore the use of PFGeoPoints and PFUser in a real application.
-
Integrating Facebook in iOSLearn how to login users through FB and to make queries to the FB Graph API.
-
AnyPicAnypic is photo sharing app that explores the challenges behind real world apps.
-
Saving ImagesLearn how to make an app that allows the user to take a picture and upload it directly to Parse
-
One-to-Many RelationshipsLearn how to create a one-to-many relationship between two PFObjects.
-
Parse Query TableLearn how to set up a PFQueryTableViewController to display objects from a Todo class in your app.
Light
Dark