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

  • Home
  • SEARCH
  • 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 7921967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:47:16+00:00 2026-06-03T16:47:16+00:00

this is my protocol. @protocol UCMapviewDelegate <NSObject> @required – (void)slideMapviewIn:(id)sender; – (void)slideMapviewOut:(id)sender; @end This

  • 0

this is my protocol.

@protocol UCMapviewDelegate <NSObject>
@required
- (void)slideMapviewIn:(id)sender;
- (void)slideMapviewOut:(id)sender;


@end

This is were the methods should get called (In UCMapViewController.m). showMenu gets called from a button

- (void)showMenu
{
    // TODO: 
    if (self.isMapViewPushedAside) {
        [self.delegate slideMapviewOut:self];
    } [self.delegate slideMapviewIn:self];

}

And this is were the delegate is initialized. initializer for a UCMapViewController object.

- (id)initWithDelegate:(UCRootViewController *)controller
{
    self = [super init];
    if (self) {
        // Custom initialization
        self.delegate = controller;
    }
    return self;
}

but when I want to use the delegate to call it, I get the error: No known instance method for selector 'slideMapviewIn:'. what can I do about this?

  • 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-03T16:47:19+00:00Added an answer on June 3, 2026 at 4:47 pm

    Your problem is that you are not declaring your delegate as implementing that protocol. If you don’t do that, how is it supposed to know that it implements that protocol? That error is natural.

    You must declare it as id<UCMapviewDelegate> and to do that you must import the header that contains that protocol.

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

Sidebar

Related Questions

I'm doing something like this: @protocol CallbackDelegate -(void) performCallback; @end @interface MyObject : NSObject
my protocol: @protocol ElectricalSystemEngineDelegate -(void)didRequestMainMenu:(id)sender; @end I designed this protocol in order to handle
I have defined a protocol like this: @protocol RSSItemParserDelegate <NSObject> - (void)RSSItemParser:(RSSItemParser *)parser didEndParsingSuccesfully:(BOOL)success;
In my .h file I have this: @protocol ScanBookDelegate - (void)MethodNameToCallBack:(NSArray *)s; @end @property
I have a protocol in Objective-C, something like this: @protocol Handler +(NSString*) getValue; @end
Say I create a class and a protocol like this: @protocol MyProtocol @required -
In my objective-c project, I have a protocol like this: @protocol MyProtocol -(id) get:(NSString
Assume that: New Protocol is declared Method in this protocol is marked @required Class
Let's say that I define a ClassA , that implements NSCoding protocol (this class
For some reason this function confused me: def protocol(port): return port == 443 and

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.