I've created a scroll view, width less than the screen width and set clipsToBounds=YES. As the UIScrollView doesn't scroll from anywhere outside the range of its frame, I put the UIScrollview inside a UIView and tried to override the "(UIView *)hitTest:WithEvent:" method. But it always shows warning pointInside method not found (or something like that) in the if ([self pointInside:point withEvent:event]) line and it doesn't work. What did I do wrong? Thanks in advance...
Can't override "hitTest" method for UIScrollView
834 Views Asked by x4h1d At
2
There are 2 best solutions below
Related Questions in IPHONE
- How to control the volume of an iPhone programmatically in objective-c
- my website crash on safari The site sometimes crashes and I can't recover the crash
- Postal Framework crash in iPhone but runs successfully in simulator
- Xcode 15 building failure when using iphone 15 as simulator, using ios 17
- Images uploaded via Active Storage not displaying in Active Admin or on certain devices
- Any problem with creating provisioning profile with old Iphone?
- Does anyone know how to make iPad layout the same as iPhone's? Size wise the text and overall layout get's smaller when I run the app on the iPad
- Keyboard not appearing when connecting smart card reader to iPhones with type-c port. i.e. iPhone 15/ 15 pro
- Access the list of SIM mobile numbers installed in the iPhone
- Can we produce haptics and record from microphone the haptic sound at the same time on iOS?
- SwiftUI's localized string do not load from main bundle despite using the main bundle identifier (an xcode bug?)
- Cordova iOS only app upload through transport requires WKWatchKitApp
- Amazon s3 video is not played on Iphone
- build getting failed for ios xcode build -flutter app
- "Error when Importing 'mysdk' into iOS Demo App: dyld Library not loaded: @rpath/MQTTClient.framework/MQTTClient"
Related Questions in UISCROLLVIEW
- ScrollView disable on Device Orientation
- How to detect user scrolll on the scrollview
- UITableView gets cut off at the bottom / UIScrollView, UITableView, uitableviewdiffabledatasource
- Hide a Url address bar on scroll in Flutter Web (Mobile)
- When using UIScrollView, how can I fade the left and right edges if content is outside the visible bounds?
- UIScrollView is unexpectedly initially zoomed in in UIViewControllerRepresentable
- UITextField Jumps Above UIImageView When Keyboard Appears
- How to right align a UIStackView inside a UIScrollView when the stack view's size is smaller than scroll view?
- How to make ScrollView includes WebView in iOS
- Why is my UIView list not visible in my UIStackView and UIScrollView?
- WKWebView crash [WKScrollView _systemContentInset]
- SwiftUI / Animation based on scrollPosition in ScrollView
- SwiftUI ScrollView sliding weird
- Replicating iOS modal card UIScrollView dismiss behavior
- how to make UIScrollView's dynamic height
Related Questions in HITTEST
- How to get the TextPosition in a RichTex from a Gesture callback
- c# WPF - problem with MouseLeave event on canvas
- Is there a HitTest property or something in VCL for Delphi?
- How to set up hit-test AR in A-Frame?
- Trouble Integrating reticle.glb as a Marker for Surface Detection in WebXR
- Using hittest and UIGestureRecognizer to determine which view to use
- Graphics2D.hit method returns an unexpected boolean value
- Check number of touches in hitTest - Swift
- Make the hit testing for a NavigationLink from a Rectangle with plain button style and no foregroundColor (clear Color) include the empty space
- ArCore frame.hittest implementation or how to detect all screen corner points on the arcore Plane
- Pass UITableView default PanGesture to another UIView
- HitTestObject between a Jelly and a character
- How to pass a responder to ScrollView?
- UIView hanging off edge of superview... tap events seen by *unrelated* underlying view
- How do you pass a gesture between subviews in UIKit?
Related Questions in CUSTOM-PAGING
- Sort array items when using PagedListAdapter?
- Custom Paging not working in ListView Asp.Net
- How to make a custom paging in ASP.net MVC 5 depend on bootstrap?
- Prevent paging on custom "batch edit" radgrid if changes haven't been saved
- Add paging in Content Query Web Part
- How to do Custom Paging
- Custom Paging Size for TableView with Header in Swift (Scroll One Cell At a Time)
- how to support output paging in C++ application
- Paging in Listview with a dynamic number of rows group
- paging in asp.net gridview using repeater control
- how to achieve paging in a grid view in code
- telerik radgrid custom pagination when total number of records is not known
- set GridView virtualItmCount property
- iOS : How to do proper paging in UIScrollView?
- how can i get the filter text in the NeedDataSource event in a RadGrid with custom paging
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Answering my own question, the problem is I didn't create the UIVIew subclass to override the (UIView *)hitTest:WithEvent: while the UIScrollView was in a subview of self.view. So, it is important to check which view inherits the scroll view and write overridden method in the parent view class.