Is there a "touch slop" constant for iOS?

On Android, there is a "touch slop" concept, representing the minimum distance "a touch can wander before we think the user is scrolling". Is there a similar concept / constant on iOS that we can use?

Reference for Android: https://developer.android.com/reference/android/view/ViewConfiguration.html#getScaledTouchSlop()

-- Edit with more information --

Here's my use case: I'm actually implementing a custom gesture recognizer for general UIView. It should fire touch down, touch up & click event when appropriate. The desired effect would be to simulate how UIControls respond to touch gestures on general UIViews. The problem is, when the UIView is inside a scrollview, the click event should not fire when the scrollview starts scrolling. So I'm merely seeking for a read-only access to the constant, or wondering if such a constant is commonly agreed.

-------------Problems Reply------------

A "touch slop" property only applies if you are using a UILongPressGestureRecognizer. (Take a look at the allowableMovement property.) The system handles all the gesture classification logic for you behind the scenes. If you need this functionality for a normal UIPanGestureRecognizer, you should implement your own UIGestureRecognizer subclass. More information on subclassing can be found in the documentation.

Category:ios Views:7 Time:2019-03-16

Related post

  • Are there VBA pre-defined constants for Excel limits? 2012-02-11

    Is there a VB pre-declared constant that I can check a computed value against to compare with the maximum number of characters per cell (or any of the maximums listed in http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP0

  • Are there constants for iOS notifications in MonoTouch? And how to get a "local" observer? 2011-04-28

    Im currently trying to figure out which notification string is sent if the app gets pushed to background. Is there an enumerator in MT I keep on overseeing or do I really have to use strings as shown in this example: NSNotificationCenter.DefaultCente

  • Is there a Google Maps API for iOS which offers traffic information? 2012-01-11

    I would like to know if someone has got documentation about the Google Maps API, I'm only looking for the traffic live information I would like to implement it on my iOS application. Does such an API exist? --------------Solutions------------- I don'

  • Is there any FTP server library for iOS 5.0 2012-03-07

    I'm writing something to use the iPhone as a FTP server. I'm looking for any open source library to help me do that. Someone recommanded DiddyFtpServer ( http://code.google.com/p/diddyftpserver/ ) but this project has been removed from code.google.co

  • Is There a Font Demo App for iOS? 2010-12-18

    On iOS, you can easily get all the available Fonts via [UIFont familyNames]. The method returns an array, so it would sure be easy to create a little App that displayed all the available fonts in a UITableView and would show which fonts every "family

  • In .NET is there a class of constants for setting HttpResponse.StatusDescription? 2011-01-07

    I am using c# and modifying the HttpResponse returned from the server. I have found an enumeration which has all the relevant status codes in HttpStatusCode but i am having trouble finding an accompanying class which holds string constants to set the

  • Is there a Google Maps API for iOS or any other web service which offers Deals, Offers based on location information? 2012-03-12

    I am trying to build an app which shows deals and offers based on users location on the maps. Can you please let me know any web service or any API which exposes deals, offers based on current or user location. --------------Solutions------------- I

  • Is there a built-in constant for scala.xml.Text("") in scala? 2012-03-16

    I often use it, and I know I can define one for myself in every project. But I want to know if there is one already defined in scala library. --------------Solutions------------- You can use scala.xml.NodeSeq.empty, which is a completely empty block

  • In PlayN, is there a cross-platform constant for something like max integer value? 2012-04-14

    I've checked the Platform class, but don't see anything like that. I can obviously set my own constant, but I wondered if anything like this existed. --------------Solutions------------- Integer.MAX_VALUE should be it.

  • Is there a constant for how big a GB is in Cocoa? 2010-01-20

    Apple has changed how they calculate KB, MB, and GB in Max OS X 10.6. Instead of using 1024, they use 1000. My question is how to deal with this in my code? I'm trying to get the amount of space free, so I get the number of bytes via NSFileManager. W

  • Is there a compiler constant for Windows Runtime? 2013-05-15

    Is there a specific compiler constant for WinRT similar to the compiler constant of SILVERLIGHT and WINDOWS_PHONE? Example: #if SILVERLIGHT #if WINDOWS_PHONE --------------Solutions------------- WINAPI_PARTITION_APP and WINAPI_PARTITION_DESKTOP are t

  • Does .Net have any built in constants for common numbers like million, billion etc? 2009-10-29

    Does .Net have any built in constants for common numbers like million, billion etc? EDIT: As has been suggested this was for readability reasons, rather than writing 1000000 or 1000000000. I know I can create my own just wanted to check that they did

  • Simple embeddable MidiSynth for iOS? 2010-11-21

    I have a guitar diagram app for Android that I am porting to iOS. Android has a embedded midi synthesizer (sonivox), so I can generate midi files and let Android handle the playback. Is there a way to do this on iOS? Or are there very lightweight emb

  • WebDav client library for iOS 2011-05-04

    Is there any WebDav client implementation for iOS ? --------------Solutions------------- Have a look at WTclient. try WTClient, it's written in objective-c. I just started using DZWebDAVClient. It needs AFNetworking to work though. Had no issues sett

  • SSH2 library for ios 2011-07-22

    Is there any quality SSH2 library for ios? For java there's a library called jsch (http://www.jcraft.com/jsch/) that does a great job at wrapping ssh2. The one bit of functionality that I'm most interested in is the "Reverse Port Forward" method: ses

  • Microsoft Onenote for ios, inserting picture problem after latest update 2014-02-23

    Hi, Just wanted to ask about Microsoft Onenote for ios (Iphone and Ipad). I was wondering if anyone else is experiencing the same problem I'm having? Whenever I try to insert a picture --> take a picture, I couldn't zoom the camera in or out, I co

  • Is there any way to use window.onbeforeunload on Mobile Safari for iOS devices? 2010-11-08

    Looks like Apple has disabled the window.onbeforeunload event for iOS devices (iPhone, iPad, iPod Touch). Unfortunately I can't find any documentation as to why this event doesn't work in Mobile Safari. Does anyone know if there's a reliable alternat

  • Mulitple "apple-touch-startup-image" resolutions for iOS web app (esp. for iPad)? 2011-01-14

    I've written an HTML5-based iOS web application and all seems to be working well, but I'm trying to polish it up with multiple startup screens. The iPhone/iPod touch works well w/a PNG of 320x460, as follows: <link rel="apple-touch-startup-image"

  • CSS pseudo class for when a user is touching an element in iOS Safari? 2012-02-28

    In Safari on iOS, is there a CSS pseudo class for when a user is touching an element? Or do I have to use javascript? Similar to how :hover works on desktop computers, it would be active while the finger is touching the element, and then be inactive

  • KIF Framework for iOS: Can it simulate touch-and-hold gesture? 2012-03-13

    How do I simulate a touch-and-hold step on a view using the KIF-framework for iOS --------------Solutions------------- There are functions built into the framework now. You can use it like this: [steps addObject:[KIFTestStep stepToLongPressViewWithAc

  • Is there any physics engine SDK for iPhone/iPod touch and iPad? 2010-04-23

    Is there any physics engine SDK for iPhone/iPod touch and iPad? --------------Solutions------------- The Chipmunk engine is written in C, and they've even provided an Objective-C wrapper. The Box2D engine is written in C++, and so it can be compiled/

  • Are there any useful naming conventions for *your* constant/static variable in Cocoa? 2010-05-26

    I know that constants start with the k prefix, but does anyone have their own constant prefix, so they can easily get completion on their constants, instead of Apple's? I use a three letter prefix for my classes because of my company name, let's pret

  • Is there an offline geocoding framework, library, or database for iOS? 2010-12-07

    Is there an (offline) Geocoding framework, library or database for iOS? A place to get the data from? I need to be able to geocode street addresses in cities worldwide (or at least in the United States) into latitude and longitude for sunrise and sun

  • Is there any UI Automation tools available for iOS that don't require the iOS SDK 2011-03-30

    Is there any UI Automation tools available for iOS that don't require the iOS SDK? I'm wondering if there's a way for a tester to not have to download the SDK and have to accept the license agreement. All the Automation tools I have found require you

  • Is there a visualization framework like JUNG for iOS? 2011-04-22

    Is there a visualization framework like JUNG for iOS? I'd like to implement something similar to this. --------------Solutions------------- Best graph plotting library for iOS is Core plot. It is very powerful, and easy to understand. But for simple

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.282 (s). 11 q(s)