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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:07:09+00:00 2026-06-09T18:07:09+00:00

I have a image wall ( UIScrollView ) and in there I have a

  • 0

I have a image wall (UIScrollView) and in there I have a lot of UIImageView's.

Here is my code:

for (ThumbPosterModel *tPoster in _thumbsPosterStack) {

    UIImageView *imageView = [[UIImageView alloc] initWithImage:tPoster.thumb];
    imageView.userInteractionEnabled = YES;
    imageView.frame = CGRectMake(i, imageView.frame.origin.y, imageView.frame.size.width, imageView.frame.size.height);

    [tPoster setTag:tag];
    [_posterTagArr addObject:(BasicPosterModel*)tPoster];

    imageView.tag = tag;
    tag++;
    [posterWallScrollView addSubview:imageView];

    UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(imageDoubleTapped:)];
    doubleTap.numberOfTapsRequired = 2;
    [imageView addGestureRecognizer:doubleTap];
}

And Here is my IBAction:

-(IBAction)imageDoubleTapped:(id)sender {
    NSInteger selectTag = (((UIGestureRecognizer*)sender).view.tag);
    for (BasicPosterModel *bPoster in _posterTagArr) {
        if(bPoster.tag == selectTag) {
            [UIView transitionFromView:(UIImageView*)((UIGestureRecognizer*)sender).view
                                toView:mySecordView //let's say next ImageView. Doesn't matter
                              duration:1.0
                               options:UIViewAnimationOptionTransitionCrossDissolve  
                            completion:^(BOOL finished) {
                                // animation completed
                            }];

        }
    }
}

And when I use:

UIViewAnimationOptionTransitionCrossDissolve this is effect ONLY on my image in ScrollView.
When I use in this code UIViewAnimationOptionTransitionFlipFromTop this affect to my scrollView.

How it’s possible?

Of course I want to my Animation effect only for single image.

  • 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-09T18:07:10+00:00Added an answer on June 9, 2026 at 6:07 pm

    Here’s how the transition works conceptually:

    1. The system renders the current state of the parent view of the fromView to an off-screen buffer (“before” state)
    2. the fromView is removed from its parent view
    3. the toView is added to the parentView (can be nil, you’re right about that; in that case nothing is added)
    4. The system renders the parent view into an off-screen buffer (“after” state”)
    5. the system animates the transition of the parent view from the “before” state to the “after” state

    In your case the parent view is the scroll view, so the whole scroll view is transitioned. Counter to your perception, that’s the case even when using a cross dissolve. It’s just that most of the scrollview (the part that’s not covered by fromView) is identical before and after, so it looks as if that part does not take part in the transition – but it does.

    If I understand correctly, your are arranging multiple stacks of image views horizontally in your scroll view, and whenever someone double taps on the “uppermost” image view in a stack, you want to “reveal” the image directly below it, without affecting the other stacks.

    If you add a container view to the scrollView for each of these stacks that is the same size as the stack, and put all the ImageViews for this stack into this container view instead of directly into the scroll view, it will work. On tap, just do a transition from the tapped view to nil as you originally did. The transition’s size on the screen will be limited to the container view (roughly – curls and flips use some space beyond its frame).

    Depending on your requirements, you might want to remove the stack’s container view after the last image in the stack is removed.

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

Sidebar

Related Questions

I have here a simple image converter code using Magick++(ImageMagick interface) library.(Eclipse IDE) #include
I have an actionscript, which makes a dynamic image wall. It gets parameters from
Here's what I'm trying to do : I have about 20 og:image in meta
I want to post some text with image on Facebook wall. I have this
I have an image of the World Wall Map, now when I hover over
I have image Array with two images out of that first image its showing
I have image map that can I move, but this map will be so
I have image on server of dimension 1000x800. I download it using following approaches:
I have image and txt file of same size say 200 KB. Now i
I have image upload, where I check, how big part of image is already

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.