Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.

lJoct03

macrumors member
Original poster
Nov 18, 2009
31
0
Please help.

Code:
//Initialize the detail view controller and display it.
    DetailViewController *dvController = [[DetailViewController alloc] init]; [SIZE="1"][B]<--- Use of undeclared identifier 'dvController'[/B][/SIZE]
    dvController.selectedCountry = selectedCountry; [SIZE="1"][B]<--- Use of undeclared identifier 'dvController' / Local declaration of 'selectedCountry' hides instance variable[/B][/SIZE]
    [self.navigationController pushViewController:dvController animated:YES]; [SIZE="1"][B]<--- Use of undeclared identifier 'dvController'[/B][/SIZE]
    [dvController release]; [SIZE="1"][B]<--- Use of undeclared identifier 'dvController'[/B][/SIZE]
    dvController = nil; [SIZE="1"][B]<--- Use of undeclared identifier 'dvController'[/B][/SIZE]
 
Last edited by a moderator:
Have you #import'ed the .h file declaring DetailViewController?

What is the line immediate before the first line you posted? Perhaps an error on that line is the root cause and these are subsequent errors.
 
these are my warnings/errors now:
 

Attachments

  • Screen Shot 2011-10-18 at 7.50.14 PM.png
    Screen Shot 2011-10-18 at 7.50.14 PM.png
    93.1 KB · Views: 125
  • Screen Shot 2011-10-18 at 7.50.33 PM.png
    Screen Shot 2011-10-18 at 7.50.33 PM.png
    69 KB · Views: 104
these are my warnings/errors now:

Did returning UITableViewCellAccessoryDisclosureIndicator in tableView:cellForRowAtIndex: ever work?! That method's meant to return a UITableCell*. UITableViewCellAccessoryDisclosureIndicator is a member of the UITableViewCellAccessoryType enum. Your meant to assign it to a cell's accessoryType property and then return the cell itself.

I'll leave the deprecation warnings for you. Search this forum for the answers.

Do you in fact have a selectedCountry property or instance variable in this class? If you do, did you mean to access that instance variable or declare a local variable? If meant to declare a local variable, you should rename the local variable to be something different to avoid potential confusion.
 
everything is perfect now except for this:
 

Attachments

  • Screen Shot 2011-10-18 at 8.47.50 PM.png
    Screen Shot 2011-10-18 at 8.47.50 PM.png
    22.7 KB · Views: 117
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.