- 此问题在此处已有答案**:
"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];
1条答案
按热度按时间zwghvu4y1#