由于ios中出现未捕获的异常,无法识别的选择器发送到示例&正在终止应用程序[重复]

rm5edbpk  于 2023-02-10  发布在  iOS
关注(0)|答案(1)|浏览(235)
    • 此问题在此处已有答案**:

"unrecognized selector sent to instance" error in Objective-C(40个答案)
3小时前关门了。
由于ios中未捕获异常,无法识别的选择器发送到示例并终止应用程序(& T)。由于ios中未捕获异常,无法识别的选择器发送到示例并终止应用程序(& T)//Close UIBarButtonItem * closeButton =[[UIBarButtonItem alloc] initWithTitle:[[I18n sharedInstance] cancelButton] style:UIBarButtonSystemItemCancel target:self action:@selector(dismsSignatureView:)];[自导航项设置左栏按钮项:关闭按钮];[关闭按钮释放];

// Close
    UIBarButtonItem *closeButton = [[UIBarButtonItem alloc] initWithTitle:[[I18n sharedInstance] cancelButton]
                                                                    style:UIBarButtonSystemItemCancel
                                                                   target:self
                                                                   action:@selector(dismissSignatureView:)];
    [self.navigationItem setLeftBarButtonItem:closeButton];
    [closeButton release];
    
    
    // Close Button
    UIBarButtonItem *eraseButton = [[UIBarButtonItem alloc] initWithTitle:@"Clear"
                                                                    style:UIBarButtonItemStyleBordered
                                                                   target:self
                                                              action:@selector(eraseSignature:)];
    
    [self.navigationItem setLeftBarButtonItem:eraseButton];
    [eraseButton release];
    
    // Close and Save
    UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithTitle:[[I18n sharedInstance] okButton]
                                                                   style:UIBarButtonItemStyleBordered
                                                                  target:self
                                                                  action:@selector(dismissSignatureViewAndSelect:)];
    doneButton.tag = fieldTag;
  
    [self.navigationItem setRightBarButtonItem:doneButton];
    [doneButton release];
    
    [self.signatureSheet.navigationBarView setItems:[NSArray arrayWithObjects:closeButton, eraseButton, doneButton, nil]];
   
    [self.signatureSheet viewWillAppear:NO];
zwghvu4y

zwghvu4y1#

// Close
    UIBarButtonItem *closeButton = [[UIBarButtonItem alloc] initWithTitle:[[I18n sharedInstance] cancelButton]
                                                                    style:UIBarButtonSystemItemCancel
                                                                   target:self
                                                                   action:@selector(dismissSignatureView:)];
    [self.navigationItem setLeftBarButtonItem:closeButton];


    // Close Button
    UIBarButtonItem *eraseButton = [[UIBarButtonItem alloc] initWithTitle:@"Clear"
                                                                    style:UIBarButtonItemStyleBordered
                                                                   target:self
                                                              action:@selector(eraseSignature:)];

    [self.navigationItem setLeftBarButtonItem:eraseButton];

    // Close and Save
    UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithTitle:[[I18n sharedInstance] okButton]
                                                                   style:UIBarButtonItemStyleBordered
                                                                  target:self
                                                                  action:@selector(dismissSignatureViewAndSelect:)];
    doneButton.tag = fieldTag;

    [self.navigationItem setRightBarButtonItem:doneButton];

    [self.signatureSheet.navigationBarView setItems:[NSArray arrayWithObjects:closeButton, eraseButton, doneButton, nil]];

    [self.signatureSheet viewWillAppear:NO];

相关问题