我正在从故事板中初始化VC,如下所示:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle: nil];
EstablishCallViewController *establishCallViewController = [storyboard instantiateViewControllerWithIdentifier:@"EstablishCallViewController"];
[[UIApplication sharedApplication].keyWindow setRootViewController:establishCallViewController];
我将VC establishViewController
设置为我的rootViewController
,然后我想像这样调用方法establishVoipCallAndShowCallViewController()
:
[establishCallViewController establishVoipCallAndShowCallViewController:EKandyOutgingVoIPCallOptions_startCallWithVideo];
然而,这会返回
嗯,不公平!在我的没有可见的@interface用于' EstablishViewCallController'声明选择器' establishVoipCallAndShowCallViewController:'
establishViewCallController.h
文件中,我有:
@interface EstablishCallViewController : UIViewController
-(void)establishVoipCallAndShowCallViewController:(enum EKandyOutgingVoIPCallOptions)outgoingCallOption;
@end
那么为什么它没有检测到这个实例方法呢?或者更好的是,我如何正确调用此实例方法?
该方法(已截断)我试图致电
-(void)establishVoipCallAndShowCallViewController:(EKandyOutgingVoIPCallOptions)outgoingCallOption
{
...
答案 0 :(得分:1)
似乎你忘记了.h文件中的establishVoipCallAndShowCallViewController的参数