"[actionSheet showFromTabBar : self.navigationController.toolbar];"에서 UIToolbar를 매개 변수 유형 UITabBar로 보내는 Imcompatable 포인터 유형 "을 경고 메시지가 나타납니다.ActionSheet와 관련된 컴파일 오류가 발생했습니다.
나는 이것이 잘못되었다는 것을 알고 있지만 작동하지만 경고없이 작동시키는 법을 모르겠습니다.
- (void)share
{
// Create the item to share (in this example, a url)
NSURL *url = [NSURL URLWithString:@"http://getsharekit.com"];
SHKItem *item = [SHKItem URL:url title:@"ShareKit is Awesome!"];
// Get the ShareKit action sheet
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
// Display the action sheet
[actionSheet showFromTabBar:self.navigationController.toolbar];
}
@Faisal : 당신이 위에 공유 한 클래스는 무엇입니까? 내 UIViewController 상속 클래스 또는 다른 클래스 – Jhaliya
여부 UITableViewController –
@ Faisal : 귀하의 코드가 날 봐, 올바른 형식을 전달하고 있습니다 .. – Jhaliya