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

  • Home
  • SEARCH
  • 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 905867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:17:33+00:00 2026-05-15T16:17:33+00:00

I have a few XIBs that are my pages, and i’m using presentmodalviewcontroller to

  • 0

I have a few XIBs that are my pages, and i’m using presentmodalviewcontroller to switch between them with some buttons. Now I want to use other buttons to pull up overlays on those views. How I have it now is I have a button which simply toggles the “Hidden” property on the UIImageview.

What are options for animating the show/hide functionality of this? I’d like some sort of zoom-in or zoom-out effect when the overlay is called up rather than just suddenly showing/hiding.

-(IBAction)basketballbutton{
if (basketball.hidden == YES)
    basketball.hidden = NO;
else if (basketball.hidden == NO)
    basketball.hidden = YES;

Thanks!

  • 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-15T16:17:33+00:00Added an answer on May 15, 2026 at 4:17 pm

    You can animate the view opacity using the alpha property.

    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.5f];
    [basketball setAlpha:([basketball alpha] > 0.0) ? 0.0f : 1.0f];
    [UIView commitAnimations];
    

    This will animate the showing and hiding of the view.

    Here is how you set the transform for scaling:

    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.5f];
    // Scale up 2x
    [basketball setTransform:CGAffineTransformMakeScale(2.0f, 2.0f)];
    [UIView commitAnimations];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have few text(SMS) messages and I want to segment them using period('.') as
I have few long commands that I will be using on a day to
I have few links displayed in JEditorPane ex: http://www.google.com/finance?q=NYSE:C http://www.google.com/finance?q=NASDAQ:MSFT I want that I
I have few inline sql statements with some arrays and if loops. I want
Have few thousand reports that have consistently formatted tabular data embedded within them that
I have few own APIs with around 2000 classes overall. Some of them use
I have few tables that gather data for internal use but i want to
I have a few Visual Studio Solutions/Projects that are being worked on in my
We have a few projects that involve building an application that is composed of
I have a few lines of PowerShell code that I would like to use

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.