Ok so im at my wit's end here. I have tried every imaginable thing to get rid of these errors
heres my code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic may go here. Create and push another view controller.
/*
//<#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil];
// ...
// Pass the selected object to the new view controller.
[self.navigationController pushViewController:detailViewController animated:YES];
[detailViewController release];
*/
NSInteger row = [indexPath.row];
if (self.nameExcerptPage == nil) {
NameOTWexcerpt *nameExcerptPageDetail = [[nameExcerptPage alloc] initWithNibName:@"NameOTWexcerpt" bundle:nil];
self.nameExcerptPage = nameExcerptPageDetail;
[nameExcerptPageDetail release];
nameExcerptPage.title = [NSString stringWithFormat:@"%&", [TheBookNavTabs objectAtIndex:row]];
Rothfuss_ReaderAppDelegate *delegate = [[UIApplication sharedApplication] delegate];
[delegate.SecondTableViewController pushViewController:TheBookNavTabs animated:YES];
}
}
and the error appears where it says "NSInteger row = [indexPath.row];
please help! thanks!