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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:01:07+00:00 2026-05-30T12:01:07+00:00

I need to apply a function when the user touches the screen with two

  • 0

I need to apply a function when the user touches the screen with two fingers.
My problem that is the screen has a UITextView.

There is also active keyboard present on the screen, that’s why the usual approach (UITapGestureRecognizer) doesn’t work for this configuration.

How can I do this?

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-30T12:01:09+00:00Added an answer on May 30, 2026 at 12:01 pm

    Since you can’t subclass UIKeyboard to pass touches maybe this link will help you.

    Detect if the user has touched the screen

    There’s a subclass of UIWindow – if you set it as your main application window (in appDelegate) you might catch touches before they get to keyboard. There you should be able to check if touches are in the UITextField area (and handle them properly) or send them down to responder chain.

    Not as elegant as using gesture recognisers but you could make it work.

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

Sidebar

Related Questions

I need to apply validation on input time intervals that are taken in as
I need to apply/remove to an input field according to a user's selection in
I make DDL changes using SQL Developer's GUI. Problem is, I need to apply
I need to apply a jQuery plugin to an HTML element that will be
What I want is a function I can run on user input that will
I'm working on an app where there are two different NSManagedObject types that might
I have a live function that triggers the 'openwindow' function and I need to
I often need to apply a function to each pair of columns in a
I need to apply some xml templates to various streams of xml data (and
I need to apply a style in code ike this: TextBlock.Style = TryFindResource(MyStyle) as

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.