A sample text editor for iOS illustrating how to open and save files with the Google Drive API
Quickeditor is a sample Google Drive app written in Objective-C for iOS. It is a text editor capable of editing files with the MIME type text/* that are stored in a user's Google Drive
Building this sample requires:
First, you need to activate the Drive API for your app. You can do it by configuring your API project in the Google Developers Console.
- Use this wizard to create or select a project in the Google Developers Console and automatically enable the API.
- In the sidebar on the left, select Consent screen. Select an EMAIL ADDRESS and enter a PRODUCT NAME if not already set and click the Save button.
- In the sidebar on the left, select Credentials and click Create new Client ID.
- Select the application type Installed application, Other, and click the Create Client ID button.
- Note the CLIENT ID and CLIENT SECRET values
-
Clone the git repo
git clone [email protected]:googledrive/ios-quickeditor.git cd ios-quickeditor
-
Open
ios-quickeditor/ios-quickeditor.xcworkspace
in Xcode -
Edit
QEEditFilesListViewController.m
and replace<CLIENT_ID>
and<CLIENT_SECRET>
with the values from the Google Developers Console -
Build the project and run it on the iOS simulator.