アプリでストーリーボードを使用しています。そして、以下のコードを使用して、UITableView から別の UIView に移動しています。
-(void)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self performSegueWithIdentifier:@"showNextView" sender:self];
}
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([segue.identifier isEqualToString:@"showNextView"])
{
AnotherViewController *destination = [segue destinationViewController];
// do something with the destination.
}
}
iOS 5 と iOS 5.1 シミュレーターを使用した場合、まったく問題はありません。しかし、iOS 6 シミュレーターを使用すると、以下のようなエラーが発生します。
スレッド 1: EXC_BAD_ACCESS (コード = 2、アドレス = 0x10)
列をなして
0x1588098: movl (%eax), %edx
ファイル内
libobjc.A.dylib`objc_msgSend:
私もAnotherViewControllerを純粋な空のビューにします。私はまだ同じエラーが発生しています。
ありがとう