0
다른보기 컨트롤러 MoreInfoCtrl.m
에서 사용자가 단추를 터치 할 때 호출 할 외부보기 컨트롤러 APICallsViewController.m
에이 메서드가 있습니다. 이 일을 어떻게 하죠?Facebook API 용 다른보기 컨트롤러에서 메서드 호출 iOS
나는이가 iOS 앱에 통합 페이스 북의 API입니다 MorInfoViewController.m
#import "APICallsViewController.h"
에서 import 지시문을했습니다.
/*
* Dialog: Request - send to a targeted friend.
*/
- (void)apiDialogRequestsSendTarget:(NSString *)friend {
currentAPICall = kDialogRequestsSendToTarget;
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Learn how to make your iOS apps social.", @"message",
friend, @"to",
nil];
HackbookAppDelegate *delegate = (HackbookAppDelegate *)[[UIApplication sharedApplication] delegate];
[[delegate facebook] dialog:@"apprequests"
andParams:params
andDelegate:self];
NSLog(@"Request - send to a targeted friend");
}
앱 위임자 또는 MoreInfoCtrl.m에서 제공해야합니까? 감사합니다 :) – hanumanDev
애플 리케이션 대리인. 승인을 시작할 때 관찰자를 추가하고 fbdidloged에서 해당 방법에 대한 주석을 달았습니다. – Saad