This post is to discuss on Integrating Parse with iOS app. If you are planning to create a fresh iOS project with Parse then download the Starter project here. If you want integrate the Parse with an existing iOS app, then please go through the steps below.
Step 1. Parse SignUp
Step 2. Move to Dashboard
Step 3. Create a New App
Step 4. Copy Application ID, Client Key and REST API Key to a text file.
Open your iOS application and paste the following code in the didFinishLaunchingWithOptions method of AppDelegate.m
Our method looks as follows. Don't forget to replace the placeholder with your App Id and Client Key :)
Add following code to the top of AppDelegate.m file.
Now we should download the Parse iOS SDK and add the Parse framework to our project. Also add the following libraries to the iOS project.
Run your project and make sure there is no errors.
Login to your Parse account and goto the DataBrowser tab to check your back-end data.
Done :)
Step 1. Parse SignUp
Step 2. Move to Dashboard
Step 3. Create a New App
Step 4. Copy Application ID, Client Key and REST API Key to a text file.
Open your iOS application and paste the following code in the didFinishLaunchingWithOptions method of AppDelegate.m
[Parse setApplicationId:@"Your_App_Id" clientKey:@"Your_Client_Key"];
Our method looks as follows. Don't forget to replace the placeholder with your App Id and Client Key :)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[Parse setApplicationId:@"Your_App_Id" clientKey:@"Your_Client_Key"];
return YES;
}
Add following code to the top of AppDelegate.m file.
#import <Parse/Parse.h>
Now we should download the Parse iOS SDK and add the Parse framework to our project. Also add the following libraries to the iOS project.
- AudioToolbox.framework
- CFNetwork.framework
- SystemConfiguration.framework
- CoreGraphics.framework
- CoreLocation.framework
- MobileCoreServices.framework
- QuartzCore.framework
- Security.framework
- StoreKit.framework
- libz.1.1.3.dylib
Run your project and make sure there is no errors.
Login to your Parse account and goto the DataBrowser tab to check your back-end data.
Done :)
Its really good concept how to integrate parse with ios such wonderful sharing very informative to us Good Job Keep it up...
ReplyDeleteNice Blog , This is what I exactly Looking for , Keep sharing more blog .Thanks for sharing this post. Very informative
ReplyDeleteGoogle App Integration Madurai