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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:36:55+00:00 2026-06-05T02:36:55+00:00

I have a flat image of a map in a UIImageView and its my

  • 0

I have a flat image of a map in a UIImageView and its my job to add clear buttons to some pre-defined “hot spots” that represent locations of interest on the map. However, given the size of the image on the iPhone, the hotspots they have defined are very close together and would be difficult to touch / tap.

Is there a way to zoom in on an image have those buttons scale larger so that they can be pressed more easily?

  • 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-05T02:36:59+00:00Added an answer on June 5, 2026 at 2:36 am

    Yes add the imageview inside a scroll view,
    Use this code

    - (void)viewDidLoad {
        [super viewDidLoad];
        UIImageView *imageview = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"yourimage"]];
        self.imageView = imageview;
        [imageview release];
    
        scrollView.contentSize = CGSizeMake(imageView.frame.size.width, imageView.frame.size.height);
        scrollView.maximumZoomScale = 4.0;
        scrollView.minimumZoomScale = 0.75;
        scrollView.clipsToBounds = YES;
        scrollView.delegate = self;
        [scrollView addSubview:imageView];
    }
    
    - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView{
        return imageView;
    }
    

    In the .h file you would have

    @property (nonatomic, retain) UIScrollView *scrollView;
    @property (nonatomic, retain) UIImageView *imageView;
    

    For more info please check StackOverFlow on how to add to use UIScrollView
    such as Adding UIImageViews to UIScrollView

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

Sidebar

Related Questions

I just wanted to try out some shaders on a flat image. Turns out
I would like to write and update a flat image like qemu-img. I have
I have a flat white circular image (as in a seriously flat #ffffff image).
I have an ImageButton with a background image that has some transparency. By default,
I have a flat Tcl list. Now I want to append a new element
I have a flat structured XML file as below: <rs> <r id=r1 lev=0/> <r
I have set of flat files (114 files) each file is named with database
I have several hundred files in a non-flat directory structure. My Makefile lists each
I have a windows mobile 5.0 application (smartphone) that contains a flat data file
I have simple SSIS package which reads data from flat file and insert into

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.