Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7927279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:13:27+00:00 2026-06-03T19:13:27+00:00

during the prepareForSegue I try to assign a value to property and get the

  • 0

during the prepareForSegue I try to assign a value to property and get the error

2012-05-09 23:14:22.122 LeakSpotter[17709:15b03] * Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UIViewController setCoordLong:]: unrecognized selector sent to instance 0xa86e930’

header:

@property (nonatomic, retain) NSString *CoordLong;
@property (nonatomic, retain) NSString *CoordLat;

They are sythesized.

-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{

NSLog(@"Fired segue %@", [segue identifier]);
if([[segue identifier] isEqualToString:@"returnToLeakSpotter"]){
    NSLog(@"Return to leak spotter segue...");
    //ContactsViewController *cvc = (ContactsViewController *)[segue destinationViewController];

}else if ([[segue identifier] isEqualToString:@"gotoTakePhoto"]) {
    NSLog(@"Go to photo view");
    takePhotoViewController *takePhotoC = [segue destinationViewController];

    takePhotoC.CoordLong = @"-9.88";
    takePhotoC.CoordLat = @"45.45";

Have I missed something obvious?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:13:32+00:00Added an answer on June 3, 2026 at 7:13 pm

    Looks like you haven’t set the view controller subclass on your takePhotoViewController in the storyboard, so it is instantiating a base UIViewController (as seen in the error) which doesn’t know what CoordLat is.

    By the way, by convention class names start with an upper case letter and variables/properties with a lower case letter, you seem to have it the other way round.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

During the installation of my app, I want to create a PostgreSQL-Database and some
During our efforts to design InApp Billing for our Android App, we came up
During the project building, i received an error: Could not load JDBC driver class
During the debugging of my WP7 app I want to access photo gallery, which
During an app update via the App Store I want to update the SQLite
During the 1st HTTP GET (right after the WSGI in daemon mode is reloaded),
During a form compilation i need to be able to insert a value, presenting
During capistrano deployment of a Rails3 app, I want my server to install gems,
during beta testing we discovered connection pooling error messages . Therefore I have been
During Setting an Entity Context will get a StackOverflowException Database is SQL Server Compact

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.