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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:02:22+00:00 2026-05-26T13:02:22+00:00

I am stuck with a map View problem for which I was surfing the

  • 0

I am stuck with a map View problem for which I was surfing the internet from the last three days but still not find any appropiate solution.

My problem is When I click on my pin which is customized, a callout appears. But standard callout support only two lines text.In my case I have to show four lines text with a button.
Please any one tell me how to create a custom callout or what approach should I use as there is no way to modify the standard callout.

Any suggestions would be highly appreciated.
Thanks in advance.

  • 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-26T13:02:23+00:00Added an answer on May 26, 2026 at 1:02 pm

    In your delegate method

    - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation
    {
        MKAnnotationView* annotationView = nil;
    
        //your code
    
            UIView *vw = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
            vw.backgroundColor = [UIColor redColor];
            UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, 50, 50)];
            label.numberOfLines = 4;
            label.text = @"hello\nhow are you\nfine";
            [vw addSubview:label];
            annotationView.leftCalloutAccessoryView = vw;
            return annotationView
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm stuck at not being able to map texture to a square in openGLES.
I have a detail view that includes three UIButtons, each of which pushes a
I'm stuck on a simple problem which is driving me nuts. In the standard
I'm a bit stuck on the last step of getting the solution to problem
I'm stuck with .Net 1.1 application (i.e. I can not use the generics goodies
I have an app at the moment which shows various pins on a map.
A lot of frameworks use URL conventions like /controller/action/{id} which is great, but if
Hi I am stuck in between the concept of Map in STL Library/C++. int
I need help with my map editor, I'm stuck on saving it. When I
I'm kinda stuck with this problem on android. I created a maps API application,

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.