我正在尝试使用gtm-oauth套件 (http://code.google.com/p/gtm-oauth/wiki/GTMOAuthIntroduction) 来进行OAuth2认证。根据文档的指示- 我已经在我的XCode 4项目中包含了所有必要的文件和代码。一旦我运行应用程序,登录屏幕会出现,但是当我单击字段(用户名或密码)时,键盘无法显示。我已经将代码移动到了项目中,包括尝试从应用委托中运行所有内容,如下所示:
GTMOAuth2ViewControllerTouch *viewController;
viewController = [[[GTMOAuth2ViewControllerTouch alloc] initWithScope:@"https://www.googleapis.com/auth/latitude.all.best" clientID:@"<MY_CLIENT_ID>" clientSecret:@"<MY_CLIENT_SECRET>" keychainItemName:@"App" delegate:self finishedSelector:@selector(viewController:finishedWithAuth:error:)] autorelease];
[self.window addSubview:viewController.view];
我尝试将范围更改为其他服务,包括经度和YouTube,但这并没有帮助。我还尝试将视图推入导航控制器并尝试以模型呈现,但这些都没有帮助。
奇怪的是,我在网页上点击了一下,成功进入了images.google.com,在那里我可以通过单击搜索栏来成功启动键盘...奇怪 :/
任何帮助将不胜感激!谢谢!