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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:05:42+00:00 2026-06-16T02:05:42+00:00

I have an UIViewController which contains 2 UIScrollViews , scrollView1 , scrollView2 for instance.

  • 0

I have an UIViewController which contains 2 UIScrollViews, scrollView1, scrollView2 for instance.

scrollView1 contains many UIViews, when tapping one of it’s UIViews I want it to move into scrollView2

When tapping a UIView that belongs to scrollView1, a method inside the UIViewController is being called and the view is passed as a parameter.

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

    In that method you should write something like:

    [view removeFromSuperview];
    [scrollView2 addSubview:view];
    

    Edit:

    For animated move you should try something like:

    CGPoint originalCenter = [self.view convertPoint:view.center fromView:scrollView1];
    [view removeFromSuperView];
    [self.view addSubview:view];
    view.center = originalCenter;
    
    CGPoint destinationPointInSecondScrollView = ; // Set it's value
    CGPoint finalCenter = [self.view convertPoint:destinationPointInSecondScrollView fromView:scrollView2];
    [UIView animateWithDuration:0.3
                          delay:0
                        options:UIViewAnimationOptionCurveEaseInOut
                     animations:^{
                         view.center = finalCenter;
                     } completion:^(BOOL finished) {
                             [view removeFromSuperView];
                             [scrollView2 addSubview:view];
                             view.center = destinationPointInSecondScrollView;
                         }];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UIViewController (which sits inside a tabUIController). Within this UIViewController, I want
I have one UIViewController (DownloadManager) which downloads a webpage with UIWebView and display the
I have an existing iPhone application which starts from a UIViewController. What I want
I have a zooming UIScrollView that contains a UIView which contains some custom UIViews
I have a NIB that contains a UINavigationController which has a UIViewController . The
I have a UIViewController which contains a UIWebView . i login to a website
I have a view controller which contains a UISearchBar @interface TradeFindHeaderViewController_iPhone : UIViewController {
I have a very simple scenario: My iPhone application contains a UIViewController implementation which
Inside Interface Builder I have a UINavigationController, which contains a UIViewController, which has a
I have a UIViewController which contains this property: @property (weak, nonatomic) IBOutlet UITableView *customerTableView;

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.