【发布时间】:2013-05-09 09:01:49
【问题描述】:
需要你的帮助。我将这些委托方法实现到 AppDelegate.m:
-(BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
if (url != nil && [url isFileURL]) {
//Valid URL, send a message to the view controller with the url
}
else {
//No valid url
}
return YES;
但是现在,我需要的不是 AppDelegate 中的 URL,而是我的 ViewController 中的 URL。我如何向他们“发送” url 或如何将这些委托方法实现到 ViewController?
【问题讨论】:
标签: ios objective-c