-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed XCode 6 compiler error #211
base: master
Are you sure you want to change the base?
Conversation
Replaced explicit call to IMP with NSInvocation methods Signed-off-by: Carl Partridge <[email protected]>
that's awesome @carlospuk ! |
Thanks for this. Saved me a lot. Was looking for a solution for almost 3 hours. |
Glad it helped. You should consider moving your implementations over to UICollectionView these days; I took the plunge recently and it's a fairly simple migration path, a lot of the implementation details are very similar. |
When i use this code instead of imp, i popViewControllerAnimated, after dealloc,i get EXC_BAD_ACCESS at function dealloc in AQGridViewCell.m |
You're on borrowed time. You really should consider moving your implementation over to UICollectionView these days; I took the plunge recently and it's a fairly simple migration path, a lot of the implementation details are very similar. |
I found a way to fix it from internet, i don't understood, but it was worked, when i choose this code, it doesn't crash. I delete this code:
*/ And use this code:
The whole code:
|
Method method = class_getInstanceMethod( [UIView class], @selector(hitTest:withEvent:) ); | ||
IMP imp = method_getImplementation( method ); | ||
return ( (UIView *)imp(self, @selector(hitTest:withEvent:), point, event) ); // -[UIView hitTest:withEvent:] | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ddd
When compiling in the newest version of Xcode (beta), the compiler throws an error in AQGridView.m when performing the hit test using the IMP calls.
I've replaced this code with NSInvocation calls instead; it now compiles and runs OK.
Signed-off-by: Carl Partridge [email protected]