All Projects → box → box-ios-browse-sdk

box / box-ios-browse-sdk

Licence: Apache-2.0 license
No description, website, or topics provided.

Programming Languages

objective c
16641 projects - #2 most used programming language
shell
77523 projects
Makefile
30231 projects

Project Status

Box iOS Browse SDK

##Note:

  • The Box iOS Browse SDK is in Maintenance mode. This means only critical bugs will be patched. However, new functionality and additional bug fixes may be added on occasion based on customer demand, but should not be expected.

This SDK allows you to show UI that allows users to browse their folders on Box.

Developer Setup

  • Ensure you have the latest version of Xcode installed.
  • We encourage you to use Carthage to import the SDK into your project.

Quickstart

Step 1: Setup Carthage

brew install carthage

Create Cartfile in your project directory, add the following line:

 git "[email protected]:box/box-ios-browse-sdk.git" "master"

This will fetch the latest commit on master branch.

Step 2: Run Carthage Update

In the same directory as your Cartfile, run the following command:

carthage update --platform ios

Step 3: Import

In your project:

@import BoxBrowseSDK;

Step 4: Set the Box Client ID and Client Secret that you obtain from creating a developer account

[BOXContentClient setClientID:@"your-client-id" clientSecret:@"your-client-secret"];

Step 5: Launch a BOXFolderViewController

BOXContentClient *contentClient = [BOXContentClient defaultClient];
BOXFolderViewController *folderViewController = [[BOXFolderViewController alloc] initWithContentClient:contentClient];

// You must push it to a UINavigationController (i.e. do not 'presentViewController')
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:folderViewController];
[self presentViewController:navigationController animated:YES completion:nil];

Sample App

A sample app can be found in the BoxBrowseSDKSampleApp folder. To execute the sample app: Step 1: Update Carthage

cd BoxBrowseSDKSampleApp
carthage update --platform iOS

Step 2: Open Workspace

open BoxBrowseSDKSampleApp.xcworkspace

Contributing

See CONTRIBUTING on how to help out.

Copyright and License

Copyright 2015 Box, Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].