I have an iPad app that uses a TabBar setup with a custom SplitViewController and allows selections from a standard left-hand table menu (controlled by a ViewController) to change the contents to the right (landscape only) controlled by a DetailViewController. This runs fine and is in the App Store. I am in the process of updating it to ARC and iOS7 using Xcode 5.1.1 and the conversion has worked and the program seems to run OK in the simulator. However I am getting a warning (which I never had before) in the didSelectRowAtIndexPath method of each of the Views. For example in a class, StylesViewController:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[(StylesDetailViewController *)detailViewController initWithIndexPath:indexPath];
[((StylesDetailViewController *)detailViewController).masterPopover dismissPopoverAnimated:YES];
}
The warning is for the first line (the second is probably not used as the app only supports landscape) and is "expression result unused". The line is necessary, the program does not crash, so I assume that this warning could be ignored. However, knowing Apple, I would prefer not to submit an app with warnings for review. Can anyone suggest a harmless statment to 'use' the 'result of the expression' and hence silence the compiler?