我在 UIButton 上遇到了奇怪的问题。
当我点击按钮时,应用程序崩溃。
我为此写了下面的代码......
-(IBAction)renameTest:(id)sender
{
NSLog(@"Tapped");
// UIButton *button = (UIButton *)sender;
NSUInteger row = 1;//button.tag;
NSString * titlename = [titleArray objectAtIndex:row];
RenameTest *renameVC = [[RenameTest alloc]initWithNibName:@"RenameTest" bundle:nil];
renameVC.titlespell = titlename;
NSLog(@"titlespell = %@",renameVC.titlespell);
NSLog(@"title = %@",titlename);
// [button release];
[self.navigationController pushViewController:renameVC animated:YES]; //here APP is cresh
[renameVC release];
}
我还检查了我的 .Xib 文件名。没关系,文件在那里。
错误消息如下:
2012-07-11 14:28:29.079 TestApp[238:207] -[__NSCFDictionary _isNaturallyRTL]: unrecognized selector sent to instance 0x73d8a80
提前致谢。