好的,我们在我们的应用中播放视频。场景是,我们使用通知来暂停当前正在播放的其他视频。
现在的问题是,一段时间后,应用程序在发布暂停其他视频的通知时崩溃,称未识别的选择器发送到实例。
下面是确切的错误:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIButton pauseVideoNotification:]: unrecognized selector sent to instance 0x167d3100'
这是我的ViewController.m代码
#import "ViewController.h"
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[self addMyButton];
}
-(void)addMyButton {
UIWebView *webView = [[UIWebView
- (NSDictionary*)convertMessage:(Message*)event
{
// if this gets called then a derived class either didn't override this function or it called [super convertEvent:event]
[self doesNotRecognizeSelector:_cmd];
return nil;
}
我期望结果值为零。
-(void)calling{
NSDictionary *dictionary = [self
我一直在努力寻找解决方案,但类似问题的答案并没有给我指明正确的方向。问题如下
例如,在我的MasterViewController的viewDidLoad中我调用
BannerView *bannerLogoView = [[BannerView alloc]init];
//add the tabcotroller as a subview of the view
[self.tabBarController.view addSubview:bannerLogoView.bannerView];
BannerView.m
#import "BannerView.h"
@i