Skip to content

A sample text editor for iOS illustrating how to open and save files with the Google Drive API

License

Notifications You must be signed in to change notification settings

netconstructor/ios-quickeditor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ios-quickeditor

A sample text editor for iOS illustrating how to open and save files with the Google Drive API

Overview

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

Prerequisites

Building this sample requires:

Building the sample

Create a Google APIs project and activate the Drive API

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

Fetch and build the app

  1. Clone the git repo

     git clone git@github.com:googledrive/ios-quickeditor.git
     cd ios-quickeditor
    
  2. Open ios-quickeditor/ios-quickeditor.xcworkspace in Xcode

  3. Edit QEFilesListViewController.m and replace <CLIENT_ID> and <CLIENT_SECRET> with the values from the Google Developers Console

  4. Build the project and run it on the iOS simulator.

About

A sample text editor for iOS illustrating how to open and save files with the Google Drive API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 99.2%
  • Other 0.8%