Problem
When a user touches a cell, the app crashes due to an EXC_BAD_ACCESS error.
This has been crashing the app for some time (perhaps since iOS 8, 7 or even 6)
Crash
The crash is occuring inside AQGridView.m
here:
return ( (UIView *)imp(self, @selector(hitTest:withEvent:), point, event) );
Appears to on occasion work just fine (unclear why) when switching between testing devices:
[iPhone6, another iPhone6, and an iPhone6+]
Implementation
The AQGridView is set to strong and is referenced in an XIB file
@property (nonatomic, strong) IBOutlet AQGridView *gridView;
The DataSource and Delegate are being set
self.gridView.delegate = self;
self.gridView.dataSource = self;
This used to work, but recently it's been crashing, and inconsistently too...
It's not clear, but I think the problem started around iOS 7 or 8
Attempts
- Updated to latest AQGridView:: Appeared to temporarily fix it, but the app soon began crashing when touching a cell again...
- Updated code for working with AFNetworking 2.0 SDK:: (thinking the problem was related to an adjacent networking issue) No fix...
- Grasping at straws:: Maybe the Cells were not properly being retained (but this is in ARC) so used an array to store them: No Fix...