box-ios-browse-sdk 1.0.7

box-ios-browse-sdk 1.0.7

TestsTested
LangLanguage Obj-CObjective C
License Apache 2
ReleasedLast Release Jan 2017

Maintained by Irving Ruan, Rico Yao, Clement Rousselle, Tom Carpel.



 
Depends on:
box-ios-sdk>= 0
MBProgressHUD~> 1.0.0
 

  • By
  • Box

Box iOS Browse SDK

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 CocoaPods to import the SDK into your project. CocoaPods is a simple, but powerful dependency management tool. If you do not already use CocoaPods, it's very easy to get started.

Quickstart

Step 1: Add to your Podfile

pod 'box-ios-browse-sdk'

Step 2: Install

pod install

Step 3: Import

#import <BoxBrowseSDK/BoxBrowseSDK.h>

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: Install Pods

cd BoxBrowseSDKSampleApp
pod install

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.