我正在使用iOS应用程序,我使用谷歌驱动器访问我的文件,登录和列表文件工作正常,但我只是问我如何在登录界面上添加取消按钮由谷歌驱动器sdk提供查看图像怒吼
因为,你看到没有办法做一个cancel
或一个go back
按钮.
这是我的代码
// verify if the user is already connected or not
- (void)checkIfIsConnected
{
// Check for authorization.
GTMOAuth2Authentication *auth =
[GTMOAuth2ViewControllerTouch authForGoogleFromKeychainForName:kKeychainItemName
clientID:kClientID
clientSecret:kClientSecret];
if ([auth canAuthorize]) {
[self isAuthorizedWithAuthentication:auth];
}else
{
[self ConnectToDrive];
}
}
- (GTLServiceDrive *)driveService {
static GTLServiceDrive *service = nil;
if (!service) {
service = [[GTLServiceDrive alloc] init];
// Have the service object set tickets to fetch consecutive pages
// of the feed so we do not …
Run Code Online (Sandbox Code Playgroud)