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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:03:46+00:00 2026-06-08T03:03:46+00:00

To hide or show a button in a view I am using myButton.hide =

  • 0

To hide or show a button in a view I am using

myButton.hide = YES or myButton.hide = NO

I am looking for the way to show a button animatedly such as slowly fade in

Does anybody know how to do it,Please help

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-06-08T03:03:47+00:00Added an answer on June 8, 2026 at 3:03 am

    You can use UIView animation.
    Here is simple implementation:

    // to hide
    [UIView animateWithDuration:0.5
        delay:1.0
        options: UIViewAnimationCurveEaseOut
        animations:^{
            myButton.alpha = 0.0
        } 
        completion:^(BOOL finished){
            NSLog(@"Done!");
        }];
    
    // to show (implement in another method)
    [UIView animateWithDuration:0.5
        delay:1.0
        options: UIViewAnimationCurveEaseOut
        animations:^{
            myButton.alpha = 1.0;
        } 
        completion:^(BOOL finished){
            NSLog(@"Done!");
        }];
    

    Here is a good tutorial for this: How To Use UIView Animation Tutorial

    You might want to take a look at the documentation too: UIView Class Reference

    There are also similar QA’s in this website: e.g. How can I animate a UIButton Alpha property

    Hope it helps!

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

Sidebar

Related Questions

I need to show a form using a button, and hide it when the
I am using below code to show hide my subview: [self.view addSubview:selectorView]; [selectorView setFrame:CGRectOffset([selectorView
I am using a custom title view and would like to show/hide a progressbar
I'm using jQuery to hide and show elements when a radio button group is
I'm trying to create a Hide/Show button with jQuery. When .cminus is clicked, it
In Lion, source list group items now have a Hide/Show button that appears when
I am trying to hide/show/toggle a div when a button is clicked. I am
Im trying to toggle an animation on height when a button Show Details/Hide Details
I have a toggle button, with a show/hide feature in javascript. How do I
I'm using jQuery fullscreen plugin https://github.com/martinaglv/jQuery-FullScreen My code: $('#cancel-fullscreen').hide() //View Fullscreen $('#view-fullscreen').click(function(){ $('#container').css({'background': 'green'}).fullScreen();

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.