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 7658263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:10:45+00:00 2026-05-31T13:10:45+00:00

I am having RouteSelectController from which I am navigating to RouteInfoController. -(void)GoToRouteInfo { RouteInfoController

  • 0

I am having RouteSelectController from which I am navigating to RouteInfoController.

-(void)GoToRouteInfo
{
    RouteInfoController *controller = [[RouteInfoController alloc] initWithNibName:@"RouteInfoController" bundle:nil];

controller.delegate = self;
[self.navigationController pushViewController:controller animated:YES];
[controller release];
}

In RouteInfoController.h I am creating my customized protocol like

#import <UIKit/UIKit.h>
@protocol RouteInfoDelegate;
@interface RouteInfoController : UIViewController<UITableViewDelegate, UITableViewDataSource, WptInfoDelegate>
{

    id<RouteInfoDelegate> delegate;
}
@property (nonatomic, assign) id delegate
@end

@protocol RouteInfoDelegate

- (void) deleteWptFromRouteAndAppWithUID;

@end

In RouteInfoController.m I called this delegate method like:

#import "MapViewController.h"
@class MapViewController;
@implementation RouteInfoController
@synthesize delegate;

-(void)callRouteDelegateMethod
{
  [self.delegate deleteWptFromRouteAndAppWithUID];
}

And the definition of this method is in MapViewController.m like:

#import "RouteInfoController.h"
@interface MapViewController () <UIScrollViewDelegate,RouteInfoDelegate>
{
    //.....................................
}

-(void) deleteWptFromRouteAndAppWithUID // The problem here is this delegate method is not called
{
    NSLog(@"\n Inside delete Way point...");

}

Edit: And when the control reaches to that delegate method in

-(void)callRouteDelegateMethod

in RouteInfoController I am get a crash message in my console like :

[RouteSelectController deleteWptFromRouteAndAppWithUID]: unrecognized
selector sent to instance 0x6eb4eb0

Edit2:

In RootInfoController I am having a method on didselect of any cell of table view it calls this method

- (void) viewWptInfoControllerAtIndex: (int)index{

    WptInfoViewController *controller = [[WptInfoViewController alloc] initWithNibName:@"WptInfoViewController" bundle:nil];
    controller.asRootController = NO;
    controller.delegate = self;
    NSMutableDictionary *dict = [route.routeWaypoints objectAtIndex:index];
    NPLibWaypoint *libWpt = [NPLibWaypoint initWithDictionary:dict AndDelegateDS:delegateDS];
    controller.libWpt = libWpt;
       [libWpt release];
    controller.isFromRouteInfo = YES;
    [self.navigationController pushViewController:controller animated:YES];
    [controller release];

}

Guy’s cpls anyone suggest me How to resolve this and what’s wrong I done.

Anyone’s Help is deeply Appreciated.

Thanks All,
Monish.

  • 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-05-31T13:10:46+00:00Added an answer on May 31, 2026 at 1:10 pm

    The error you’re getting is pretty straightforward. It means that you’re sending the message -deleteWptFromRouteAndAppWithUID to an instance of RouteSelectController, and that that class doesn’t have that method. Some things to consider:

    • spelling: If you think that you’ve defined that method in that class, carefully check the spelling of the method name to make sure that the method you’re calling exactly matches the name of the method that you’ve implemented. It’s a pretty long name, and it’d be easy to get wrong. Remember that capitalization counts, as does the colon (or lack of colon).

    • receiver: Check that the object that’s receiving the message really is the object that you intended. This message crops up sometimes when you’ve got a bad pointer, causing a case of mistaken identity.

    It looks like it’s the second point that’s the problem in your case — you’ve got an implementation of the method in MapViewController, but the error message indicates that that message is being sent to an instance of a different class (RouteSelectController). You may be changing RouteInfoController’s delegate explicitly in your code somewhere, so look for that. But it may be the case that your RouteInfoController’s delegate object is for some reason being deallocated, and a RouteSelectController happens to be created subsequently at that same address. When that happens, delegate points to the right place, but the wrong object is now there, and the error results.

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

Sidebar

Related Questions

having an annoying issue with getting xml data from a url if i set
Having some trouble getting a JSON feed to load from my site. I'm starting
Having this route: map.foo 'foo/*path', :controller => 'foo', :action => 'index' I have the
Having the code: [Test] public void ShouldDoSomethingMeaningFull() { Assert.Fail(); } I often need to
Having a data-confirm tag in a link in Rails 3 generates the unobstructive Javascript
Having this table: CREATE TABLE `example` ( `id` int(11) unsigned NOT NULL auto_increment, `keywords`
Having installed NeatUpload ( http://neatupload.codeplex.com/ ), and put the demo onto my server (Windows
Having a problem with Backbone being inconsistent. I've added a console.log to the fetch
Having been a PHP developer on LAMP servers for quite a while, is there
Having a heckuva time with this one, though I feel I'm missing something obvious.

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.