【发布时间】:2011-07-05 19:04:40
【问题描述】:
尝试使用共享工具包发送到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];
}
}
【问题讨论】: