I apologize, but this is eating my lunch. I'm new to Objective C programming, but I'm just getting frustrated with trying to figure out this issue. I'm currently just putting together a little table view application together through a tutorial.
The program will build, but will not run (keeps booting me out). I have only 1 error at =
The error = Semantic Issue: Local declaration of 'tableView' hides instance variable.
Anyone have a quick fix for this error?
Code:
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier: CellIdentifier];
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone ) {
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}
}
The program will build, but will not run (keeps booting me out). I have only 1 error at =
Code:
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
The error = Semantic Issue: Local declaration of 'tableView' hides instance variable.
Anyone have a quick fix for this error?
Last edited by a moderator: