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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:12:02+00:00 2026-06-12T04:12:02+00:00

I have a button on view1 and and I want to move it to

  • 0

I have a button on view1 and and I want to move it to view2 , but with animation from top. My view1 is on on the top half of the screen and view2 on the bottom half of the screen. So the superview changes as you can see. I have tried multiple approaches but the button just appears from the left or right but not from its origin. Any help is appreciated.

  • 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-12T04:12:03+00:00Added an answer on June 12, 2026 at 4:12 am

    I have accomplished this very result using the following code:

    CGRect tabFrame = tab.frame;
    CGRect viewFrame = [mainWindow convertRect:tabFrame toView:currentView];
    tab.frame = viewFrame;
    [tab removeFromSuperview];
    [currentView addSubview:tab];
    

    This code converts tab‘s frame from mainWindow into currentView. This works perfectly, aside from this bug. If you don’t encounter that problem, or find out how to solve it I would really appreciate that.

    All you need to do from that point is apply your normal animation.

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

Sidebar

Related Questions

I have a screen with several buttons from top to bottom and when they
I have a view with a button at the bottom of the portrait screen,
I have a screen filled with buttons, but want the onTouch-method to use the
I'm trying to move button (with animation) upon click. I want it to move
I have a view containing a button. And i want to perform an action
I want to implement layering of screens when transitioning from one screen to another.
I am creating navigation based iphone application.In that i have to move from one
I want to have an image that moves each time I hit a button.
I have a tableView and want to add a toolbar at the bottom with
I have a button in a view which refuses to work. I've got in

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.