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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:46:55+00:00 2026-06-06T00:46:55+00:00

I am developing an iPhone application for a university project and I’m new to

  • 0

I am developing an iPhone application for a university project and I’m new to iPhone development. I have looked through Apple’s MapCallouts code but it doesn’t seem feasible to implement it.

So far my code displays a map, drops annotations, displays the title and it displays the right call out button. But this is where I encounter problems.

When I press on the callout button, it displays a blank view controller but it should display a different image for every callout that’s tapped and this isn’t happening so far.

I have added my code below:

- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view 
        calloutAccessoryControlTapped:(UIControl *)control
{
    //NSUInteger tag = ((UIButton *)control).tag;

    if (self.detailController==nil)
    {
        DetailViewController* detailViewController = [[DetailViewController alloc] init];
        [self.navigationController pushViewController:detailViewController animated:YES];            
    }

   // self.detailController.tag =1; //to identify image required
   // self.detailController.tag = tag;

    [self.navigationController pushViewController:detailController animated:YES];
}
  • 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-06T00:46:58+00:00Added an answer on June 6, 2026 at 12:46 am

    If you are using storyboard, then you should already have a view controller. I’m assuming your code is in the class that your view controller is an instance of.

    The easiest (least coding required) way to present an image is to:

    1. Drag a view controller into the storyboard
    2. Drag a UIImageView into the view controller
    3. Select the image you want to show up in the properties editor of the UIImageview
    4. Control-drag from the button in your main view controller to the view controller containing the image
    5. This should have created a segue. Select the segue and select “modal” from the style menu

    You can do this for each image you want, but it is messy. Consider also subclassing the image controller and programmatically defining the image you want to show up. You may need to do this anyway if you want to dismiss the image with the dismiss modal view controller method. The alternative would be adding another segue that points backward.

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

Sidebar

Related Questions

I'm developing an iPhone application that have a TabBarController with two tabs. Each tab
I'm currently developing an iPhone application, and when it comes to compiling, I have
Developing iphone application using makkit framework. I have got the map view integrated in
I am developing iphone application, I have a home page, with buttons (icons), I
I am developing an iphone application in which i have to send a mail
I have been developing iPhone application and just started adding CoreData for persistence. However
I'm developing an iPhone Application, and I have a small issue, or so I
I am developing an iphone application. In My Application I have a feature to
I am developing an iphone application in which i have to return keyboard as
I am developing Iphone application. I have used SecKeyGeneratePair method of Security/Security.h framework. I

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.