I have a view controller with GMGridView in which I have 4 GMGridViewCells. For each cell view I am using individual view controller view's as the content view of the cell.My view controllers which are being loaded into the GMGridVeiwCell's are having buttons. When I tap on the buttons within the GMGridViewCell the IBAction methods of the buttons are not getting called. Can anyone help me on this? How can I catch the button actions?
GMGridViewCell CustomView Button action method is not getting called?
226 Views Asked by CKT At
1
There are 1 best solutions below
Related Questions in OBJECTIVE-C
- "Spotlight quit unexpectedly" in MacOS Catalina version 10.15.4, This crash happening after I have installed Xcode 12
- Starting with iOS 14 or 14.0.1 WiFi works but LTE does NOT
- Uploading a file to WebDAV server using AlamoFire
- Remove `UIMenu` from `navigationBar.backBarButtonItem`
- Since iOS 14, my app does not display images only when with the debugger or a device with iOS 13. Also, the keyboard won't show all keys
- Proxy Wrap the iOS 14 Logger class
- How can I check whether my shared code is running in a WidgetKit widget or full app?
- Crash in the execution of a queue glmtl.telemetry
- AuthorizationStatus for CLLocationManager is deprecated on iOS 14
- Align content to left - SwiftUI iOS 14 Widget
Related Questions in IOS
- "Spotlight quit unexpectedly" in MacOS Catalina version 10.15.4, This crash happening after I have installed Xcode 12
- Starting with iOS 14 or 14.0.1 WiFi works but LTE does NOT
- Uploading a file to WebDAV server using AlamoFire
- Remove `UIMenu` from `navigationBar.backBarButtonItem`
- Since iOS 14, my app does not display images only when with the debugger or a device with iOS 13. Also, the keyboard won't show all keys
- Proxy Wrap the iOS 14 Logger class
- How can I check whether my shared code is running in a WidgetKit widget or full app?
- Crash in the execution of a queue glmtl.telemetry
- AuthorizationStatus for CLLocationManager is deprecated on iOS 14
- Align content to left - SwiftUI iOS 14 Widget
Related Questions in GMGRIDVIEW
- "Spotlight quit unexpectedly" in MacOS Catalina version 10.15.4, This crash happening after I have installed Xcode 12
- Starting with iOS 14 or 14.0.1 WiFi works but LTE does NOT
- Uploading a file to WebDAV server using AlamoFire
- Remove `UIMenu` from `navigationBar.backBarButtonItem`
- Since iOS 14, my app does not display images only when with the debugger or a device with iOS 13. Also, the keyboard won't show all keys
- Proxy Wrap the iOS 14 Logger class
- How can I check whether my shared code is running in a WidgetKit widget or full app?
- Crash in the execution of a queue glmtl.telemetry
- AuthorizationStatus for CLLocationManager is deprecated on iOS 14
- Align content to left - SwiftUI iOS 14 Widget
Related Questions in GMGRIDVIEWCELL
- "Spotlight quit unexpectedly" in MacOS Catalina version 10.15.4, This crash happening after I have installed Xcode 12
- Starting with iOS 14 or 14.0.1 WiFi works but LTE does NOT
- Uploading a file to WebDAV server using AlamoFire
- Remove `UIMenu` from `navigationBar.backBarButtonItem`
- Since iOS 14, my app does not display images only when with the debugger or a device with iOS 13. Also, the keyboard won't show all keys
- Proxy Wrap the iOS 14 Logger class
- How can I check whether my shared code is running in a WidgetKit widget or full app?
- Crash in the execution of a queue glmtl.telemetry
- AuthorizationStatus for CLLocationManager is deprecated on iOS 14
- Align content to left - SwiftUI iOS 14 Widget
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?
A simple solution is to override
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
inGMGridView
class like this one:Said this, you could rely on this discussion for further info: GMGridView discussion.
Let me know if this does fix the problem. Furthermore, why do you a controller for each custom view? I think the simplest manner to achieve your goal is to create a delegate for your custom view. The delegate will be the controller that contains the
GMGridView
. When you click the button in the custom view, you call the delegate and then respond according.Hope that helps.