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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:56:48+00:00 2026-05-27T16:56:48+00:00

I have a login method that connects to a server to check the user

  • 0

I have a login method that connects to a server to check the user info when the user clicks on the login button.

How can i block the view showing an activity indicator so that the user does not click on the button again?

  • 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-27T16:56:48+00:00Added an answer on May 27, 2026 at 4:56 pm

    Why don’t you just set the userInteractionEnabled to false for the button?

    btn.userInteractionEnabled = NO;
    

    and set it back to YES after the login is completed?

    You can set this property to every responsive UI element in the view you wish to disable.

    BTW

    This off-curse dose not prevent you from showing an activity indicator.

    As always I love to recommend MBProgressHUD

    EDIT
    If you are getting ARC errors do this:

    1. Select your target
    2. Look for the MBProgressHud.m file in the “Build Phases” -> “Compile Sources”
    3. add -fno-objc-arc in the Compiler Flags of the MBProgressHud.m file.

    This will flash xCode not to compile this file with ARC.

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

Sidebar

Related Questions

Hi I want to create a WCF service that have login method, which is
Let's say you have a business logic method that can perform some operation across
I have a controller user with a method login For some reason, when I
We have a C# application that connects to a FTP server, downloads some files,
We have a flex application that connects to a proxy server which handles authentication.
hello i have a app that connects and post to user wall but when
I have a Flex application that connects to a BlazeDS server using the StreamingAMF
I have some logic in a method that operates on a specified type and
I have a HtmlHelper extension method that I would like to apply some logic
I have a method in my business logic layer that accepts a stream, which

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.