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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:20:54+00:00 2026-05-22T19:20:54+00:00

The implementation of pinch zoom is been done by using UIScrollView and putting ‘UIImageView`

  • 0

The implementation of pinch zoom is been done by using UIScrollView and putting ‘UIImageView` inside it, through following code:

-(void)viewDidLoad{
    slideShowImageViewScrollView.maximumZoomScale = 4.0;
    slideShowImageViewScrollView.minimumZoomScale = 1.0;
    slideShowImageViewScrollView.clipsToBounds = YES;
    slideShowImageViewScrollView.delegate = self;
    slideShowImageViewScrollView.scrollEnabled = NO;
}

Then after checking zoomScale scrolling is been enabled as:

- (void)scrollViewDidZoom:(UIScrollView *)scrollView 
{
if (scrollView.zoomScale!=1.0) 
{
    slideShowImageViewScrollView.scrollEnabled = YES;
}
else 
{
    slideShowImageViewScrollView.scrollEnabled = NO;
}
}

And here is the view that is for zooming in, in scroll view

- (UIView *) viewForZoomingInScrollView:(UIScrollView *)scrollView
{
return slideShowImageView;
}

Now using timer the image of UIImageView is been changed after a time period, by following code:

- (void) changeImageSlide
{
    if (imageCounter>=totalNoOfImages-1) 
    {
        imageCounter=0;
    }
    NSString *str = [NSString stringWithFormat:@"%@.jpg",[copyOf_myGlobleArrayOfImageIds objectAtIndex:imageCounter]];
    mainSlideShowImageView setImage:[UIImage imageNamed:str]];
    [mainSlideShowImageView setTag:[[copyOf_myGlobleArrayOfImageIds objectAtIndex:imageCounter] intValue]];     
    imageCounter++;
}

Only thing problamatic here is when the next image is loaded that is also, ‘zoomed in’, we want image in normal mode.
Can we achieve it(by coding it for zoom out in our changeImageSlide method or any where)?
If yes, then how?
If no, then is there any alternative?

Thank You.

  • 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-22T19:20:55+00:00Added an answer on May 22, 2026 at 7:20 pm

    You can set the zoom scale on the scrollview to reset it to 1.0. You could even store zoom levels against images so that it preserves the individual zoom setting per image.

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

Sidebar

Related Questions

I have been trying to implement pinch zoom/in-out for PhotoView (a UIImageView instance) using
I am trying to get pinch/zoom work but to no luck... please check code
Using JPA with EclipseLink implementation. Code: try{ if(!em.getTransaction().isActive()) em.getTransaction().begin(); System.out.println(2); em.persist(currentUser); System.out.println(3); if (em.getTransaction().isActive()){
The implementation is through a linked list. Would something like this be legal? int
Which implementation is less heavy: PriorityQueue or a sorted LinkedList (using a Comparator)? I
All implementation of IHttpModule I've seen looks following: class HttpCompressionModule : IHttpModule { public
I've been looking to embellishing a UIScrollView by adding some kind of shadow around
The implementation of my view is below. scrollView is an iVar of type UIScrollView.
Does java's TrustManager implementation ignore if a certificate has expired? I tried the following:
Due to my current implementation of using QR Codes, I cannot change the request

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.