0

尝试使用共享工具包发送到 twitter 的链接,当 webview 出现登录 twitter 时,您可以点击用户名和密码字段,获得光标,但没有弹出键盘。

这真的开始让我感到沮丧。

这就是我尝试调用共享工具包的方式。(来自警报)

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
if (alertView.tag == 21){
    if (buttonIndex == 1) {
        //call SHK
        NSLog(@"Calling SHK");


        // Create the item to share (in this example, a url)
        NSURL *url = [NSURL URLWithString:@"http://link.com"];
        SHKItem *item = [SHKItem URL:url title:[NSString stringWithFormat:@"I just played a %d by %d board on #GAMENAME and solved it in %d moves!", down, across, turns]];



        // Get the ShareKit action sheet
        [alertView dismissWithClickedButtonIndex:0 animated:NO];

        SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];

        // Display the action sheet
        [actionSheet showInView:self.view];



    }
}
4

1 回答 1

0

It was a problem with UIResponder

UIResponder Troubles

于 2011-07-05T11:04:40.943 回答