Skip to content
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

sample project run on the ios 5.1.1,crash! #2

Closed
donbe opened this issue Nov 17, 2012 · 1 comment
Closed

sample project run on the ios 5.1.1,crash! #2

donbe opened this issue Nov 17, 2012 · 1 comment

Comments

@donbe
Copy link

donbe commented Nov 17, 2012

2012-11-17 13:26:10.034 MSCachedAsyncViewDrawing-SampleProject[6867:707] -[UITableView registerClass:forCellReuseIdentifier:]: unrecognized selector sent to instance 0xda46c00
2012-11-17 13:26:10.159 MSCachedAsyncViewDrawing-SampleProject[6867:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableView registerClass:forCellReuseIdentifier:]: unrecognized selector sent to instance 0xda46c00'
*** First throw call stack:
(0x3237188f 0x343c7259 0x32374a9b 0x32373915 0x322ce650 0x21a11 0x31dd1c8b 0x31e3163d 0x31e315db 0x31e30f15 0x31e30c49 0x31e2ddb3 0x1ff6d 0x31dd0cab 0x31dca7dd 0x31d98ac3 0x31d98567 0x31d97f3b 0x3141f22b 0x32345523 0x323454c5 0x32344313 0x322c74a5 0x322c736d 0x31dc986b 0x31dc6cd5 0x1fd05 0x1fca0)
terminate called throwing an exception
@donbe
Copy link
Author

donbe commented Nov 17, 2012

aha, sample code must run on the ios >= 6.0.

- (void)registerClass:(Class)cellClass forCellReuseIdentifier:(NSString *)identifier NS_AVAILABLE_IOS(6_0);

andrewsardone added a commit to andrewsardone/MSCachedAsyncViewDrawing that referenced this issue Nov 17, 2012
This removes an iOS 6.0-only API for table view cell creation[1] and
replaces it with the pre-6.0 dequeueing-and-checking-for-nil cell
creation strategy.

[1]: -[UITableView registerClass:forCellReuseIdentifier:]
JaviSoto added a commit that referenced this issue Nov 17, 2012
[Low Priority] Fix for issue #2 – iOS 5.x SampleProject crash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants