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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:18:31+00:00 2026-05-27T19:18:31+00:00

I want to set action on action sheet such that when user taps on

  • 0

I want to set action on action sheet such that when user taps on above of action sheet it get dismissed.
I want to this because I don’t want to add cancel button in actionsheet. Instead of cancel button user can cancel action sheet by tapping on rest area view.
Any suggestion how to do this in iPhone.
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-27T19:18:32+00:00Added an answer on May 27, 2026 at 7:18 pm
    // For detecting taps outside of the alert view
    -(void)tapOut:(UIGestureRecognizer *)gestureRecognizer
    {
        CGPoint p = [gestureRecognizer locationInView:self];
        if (p.y < 0)
        {   // They tapped outside
            [self dismissWithClickedButtonIndex:0 animated:YES];
        }
    }
    
    -(void) showFromTabBar:(UITabBar *)view
    {
        [super showFromTabBar:view];
    
        // Capture taps outside the bounds of this alert view
        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapOut:)];
        tap.cancelsTouchesInView = NO; // So that legit taps on the table bubble up to the tableview
        [self.superview addGestureRecognizer:tap];
        [tap release];
    }
    

    See here.

    Note, this already occurs on the iPad.

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

Sidebar

Related Questions

I want to set $this->layout to json in the controller action. In the json
I want to set something up so that if an Account within my app
I want to set a background image for a div, in a way that
My table has a column order that I want initially set to equal the
I want that my app shows an actionsheet when the user presses on the
I want to set up auto-login by giving the user a link/key they can
I want to set new color to Application.Current.Resources[MainColor]. I can do it like this:
If a user successfully enters a password and username, and you want to set
I have a date picker which is shown using an action sheet. I want
I want to set up a ASP.NET MVC route that looks like: routes.MapRoute( Default,

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.