2014年9月17日 星期三

Parse iOS Quickstart Tutorial

1. Download Parse SDK

2. New iOS project.

3. Drag Parse SDK to your project and check "Copy items into destination group's folder (if needed)"

4. Choose project target in "File Navigator"

5. "Build Phases" -> "Link Binary With Libaries"

6. Add "+" ->
  • Accounts.framework
  • AudioToolbox.framework
  • CFNetwork.framework
  • CoreGraphics.framework
  • CoreLocation.framework
  • libz.dylib
  • MobileCoreServices.framework
  • QuartzCore.framework
  • Security.framework
  • Social.framework
  • StoreKit.framework
  • SystemConfiguration.framework
7. Back to project and open "AppDelegate.m"

8. #import <Parse/Parse.h> 

9. Enter the code inside the application:didFinishLaunchingWithOptions: function:

[Parse setApplicationId:@"zZXgMM7F5659CtZPpQ91Yx81nX0Wdxxxxxxxxxxx"
              clientKey:@"1wWrsmVLjuku0iHKDrZqAkIczaHjPaxxxxxxxx"];

10. And to track statistics around application opens, add the following below that:

[PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions];























沒有留言:

張貼留言