dropbox source code

Upload: fuckscribdsuckmydick

Post on 02-Jun-2018

237 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 Dropbox Source Code

    1/245

    Getting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.

  • 8/10/2019 Dropbox Source Code

    2/245

    8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework and

  • 8/10/2019 Dropbox Source Code

    3/245

    QuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

  • 8/10/2019 Dropbox Source Code

    4/245

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and view

  • 8/10/2019 Dropbox Source Code

    5/245

    photos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

  • 8/10/2019 Dropbox Source Code

    6/245

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should

  • 8/10/2019 Dropbox Source Code

    7/245

    be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

  • 8/10/2019 Dropbox Source Code

    8/245

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab.

  • 8/10/2019 Dropbox Source Code

    9/245

    Under "Link Binary with Libraries", press the + button, selectSecurity.framework, and press Add. Repeat for QuartzCore.framework

    if necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

  • 8/10/2019 Dropbox Source Code

    10/245

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer key

  • 8/10/2019 Dropbox Source Code

    11/245

    and consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should be

  • 8/10/2019 Dropbox Source Code

    12/245

    near the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

  • 8/10/2019 Dropbox Source Code

    13/245

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

  • 8/10/2019 Dropbox Source Code

    14/245

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no build

  • 8/10/2019 Dropbox Source Code

    15/245

    failures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are

  • 8/10/2019 Dropbox Source Code

    16/245

    added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:

  • 8/10/2019 Dropbox Source Code

    17/245

    1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your

  • 8/10/2019 Dropbox Source Code

    18/245

    Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:

  • 8/10/2019 Dropbox Source Code

    19/245

    1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.

  • 8/10/2019 Dropbox Source Code

    20/245

    2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:

  • 8/10/2019 Dropbox Source Code

    21/245

    To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

  • 8/10/2019 Dropbox Source Code

    22/245

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder

  • 8/10/2019 Dropbox Source Code

    23/245

    5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has been

  • 8/10/2019 Dropbox Source Code

    24/245

    approved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear

  • 8/10/2019 Dropbox Source Code

    25/245

    the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

  • 8/10/2019 Dropbox Source Code

    26/245

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

  • 8/10/2019 Dropbox Source Code

    27/245

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or

  • 8/10/2019 Dropbox Source Code

    28/245

    warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your project

  • 8/10/2019 Dropbox Source Code

    29/245

    file inthe file explorer, select your target, and select the "Build

    Phases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode

  • 8/10/2019 Dropbox Source Code

    30/245

    2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

  • 8/10/2019 Dropbox Source Code

    31/245

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj

  • 8/10/2019 Dropbox Source Code

    32/245

    2. Fill in the values for appKey, appSecret, and root inDBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:

    3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at

  • 8/10/2019 Dropbox Source Code

    33/245

    http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on the

  • 8/10/2019 Dropbox Source Code

    34/245

    Developerspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.framework

  • 8/10/2019 Dropbox Source Code

    35/245

    if necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"

  • 8/10/2019 Dropbox Source Code

    36/245

    6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

  • 8/10/2019 Dropbox Source Code

    37/245

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.

  • 8/10/2019 Dropbox Source Code

    38/245

    4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

  • 8/10/2019 Dropbox Source Code

    39/245

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:

  • 8/10/2019 Dropbox Source Code

    40/245

    1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

  • 8/10/2019 Dropbox Source Code

    41/245

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

  • 8/10/2019 Dropbox Source Code

    42/245

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and

  • 8/10/2019 Dropbox Source Code

    43/245

  • 8/10/2019 Dropbox Source Code

    44/245

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

  • 8/10/2019 Dropbox Source Code

    45/245

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app key

  • 8/10/2019 Dropbox Source Code

    46/245

    andsecret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDevelopers

  • 8/10/2019 Dropbox Source Code

    47/245

    page at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif

  • 8/10/2019 Dropbox Source Code

    48/245

    necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button

  • 8/10/2019 Dropbox Source Code

    49/245

    7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

  • 8/10/2019 Dropbox Source Code

    50/245

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app

  • 8/10/2019 Dropbox Source Code

    51/245

    5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://www.dropbox.com/developers/core/start/iosGetting Started Using the DropboxSDK for iOS:

    Requirements:1. You need the 7.1 version of the iPhone SDK. The version of yourXcode should be at least 5.1.2. You need to have registered as a Dropbox app at http://www.dropbox.com/developers/apps. You should have an app keyand

    secret.

    Note: The SDK is designed to work with iOS versions 5.0 and above.

  • 8/10/2019 Dropbox Source Code

    52/245

    Building and using the example app:1. Open the project file in examples/DBRoulette/DBRoulette.xcodeproj2. Fill in the values for appKey, appSecret, and root in

    DBRouletteAppDelegate.m application:didFinishLaunchingWithOptions:3. Make sure the build is set to Simulator. This setting should benear the top-left corner of Xcode.4. Build and Run app5. Once running, make sure you can use the app to login and viewphotos in your Photos Dropbox folder without getting errors.

    If you cannot run the app without getting errors, make sure yourconsumer keyand consumer token are correct. Also make sure that your app has beenapproved by Dropbox for mobile access.

    Adding DropboxSDK to your project:1. Open your project in Xcode2. Right-click on your project in the files tab of the left pane and select "Add Files to ''"4. Navigate to where you uncompressed the Dropbox SDK and select the

    DropboxSDK.framework subfolder5. Select "Copy items into destination group's folder"6. Press Add button7. Ensure that you have the Security.framework andQuartzCore.framework are added to your project. To do this in Xcode4, select your projectfile in

    the file explorer, select your target, and select the "BuildPhases" sub-tab. Under "Link Binary with Libraries", press the + button, select

    Security.framework, and press Add. Repeat for QuartzCore.frameworkif necessary.8. Build your application. At this point you should have no buildfailures or warnings

    Using the Dropbox SDK:To learn more about using the Dropbox SDK, there is a tutorial on theDeveloperspage at https://ww