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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:05:41+00:00 2026-06-02T14:05:41+00:00

In my app I need to display stores around the user location. Each store

  • 0

In my app I need to display stores around the user location. Each store has name, tagline, and a logo, and we want to display all these information on the callout bubble that comes up on the map once I touch a pin. Considering that I need to load the image remotely, and that waiting three seconds to see the callout after touching the pin is not acceptable, what would be the best solution?
The file of an array of around 20 stores is like 10kb, but if we load the logo for all of them straight away, maybe it would be like 110kb (considering an estimate of 5kb per image), which I`m not sure if it is a good idea.

  • 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-02T14:05:42+00:00Added an answer on June 2, 2026 at 2:05 pm

    In one of my project that case works just fine.
    I’m using SDWebImage for the remote async load of the image.

    I did:

    subclass the MKPinAnnotationView:

    .h

    @interface TLStoreResultMapAnnotationView : MKPinAnnotationView
    
    @property (assign)BOOL imageSet;
    
    @end
    

    .m

    #import "TLStoreResultMapAnnotationView.h"
    #import "TLStoreResultMapAnnotation.h"
    #import "UIImageView+WebCache.h"
    
    @implementation TLStoreResultMapAnnotationView
    @synthesize imageSet=_imageSet;
    
    - (void)layoutSubviews {
    
        if(self.selected && (!self.imageSet)) {
            TLStoreResultMapAnnotation *annotation = (TLStoreResultMapAnnotation *)self.annotation;
    
            NSURL *url = [NSURL URLWithString:[annotation.store.imageURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
    
            UIImageView *storeImageView = (UIImageView *)self.leftCalloutAccessoryView;
            storeImageView.frame = CGRectMake(storeImageView.frame.origin.x,storeImageView.frame.origin.y,30.0,30.0);
            storeImageView.contentMode = UIViewContentModeScaleAspectFill;
            storeImageView.clipsToBounds = YES;
            [storeImageView setImageWithURL:url
                      placeholderImage:[UIImage imageNamed:@"webloading.png"] options:SDWebImageCacheMemoryOnly];
    
    
            self.imageSet = YES;
        }
    
        [super layoutSubviews];
        UIImageView *storeImageView = (UIImageView *)self.leftCalloutAccessoryView;
        storeImageView.frame = CGRectMake(storeImageView.frame.origin.x,storeImageView.frame.origin.y,30.0,30.0);
    }
    
    @end
    

    of course your need to adapt the code a bit.

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

Sidebar

Related Questions

My need is simple and commonly implemented in any location based app today, display
On page 1 of a mobile app I need to display categories from a
I am building an iPhone app that will need to display info primarily in
I need to display dates in a couple different ways in an app built
I have an asp.net mvc 2 app. I need to display the same page
My App need to save some data (around 100 double fields that is stored
my app need to show user scrollable menu bar under tab bar like fox
I have a singleton in my FTP app designed to store all of the
in my sencha touch app I need to display a list of over 600
I need to write an app to playback a DICOM multiframe image. Each frame

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.