我已经按照Facebook的指南在我的iOS应用程序中实现了Facebook SDK,在我的AppDelegate文件中设置了以下内容:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
// more code
return [[FBSDKApplicationDelegate sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions];
}
现在,我也在我的应用程序中实现了手动切换,并且当应用程序从头开始启动时,如果FBSDKApplicationDelegate sharedInstance返回false,则不会调用
- (BOOL) application:(UIApplication *)application willContinueUserActivityWithType:(NSString *)userActivityType
。所以我的问题是:如果我不返回
[FBSDKApplicationDelegate sharedInstance]application:didFinishLaunchingWithOptions
的结果,而是返回我的自定义结果,是否会有任何副作用?例如:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
// more code
[[FBSDKApplicationDelegate sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions];
return YES;
}