NSString *likeButtonIframe = @"<iframe src=\"http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2FyoghurtstoryNZ&send=true&width=450&height=480&action=like&colorscheme=light&show_faces=true&border_color&stream=true&header=true\" scrolling=\"yes\" frameborder=\"0\" style=\"border:none; overflow:visible; width:292px; height:590px;\" allowTransparency=\"true\"></iframe>";
NSString *likeButtonHtml = [NSString stringWithFormat:@"<HTML><BODY>%@</BODY></HTML>", likeButtonIframe];
[webView loadHTMLString:likeButtonHtml baseURL:[NSURL URLWithString:@""]];
-(void)like {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Note" message:@"You are the member of Yoghurt Story." delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];
[alert show];
[alert release];
}
이것은 메시지를 표시하는 경고를 표시하는 데 사용하는 코드입니다. 그러나 경고 창이 나타나지 않습니다. 행동이 부르지 않을 수도 있습니다.아이폰 앱의 페이스 북과 같은 액션 수행
미리 감사드립니다.
선택기를 호출 했습니까? 일부 이벤트에서 '좋아'합니다. – rptwsthi
아니요,하지만이 작업을 시도했지만 작동하지 않습니다. NSString * likeButtonIframe = @ ""; –