I am developing an app in Objective-C.
An iPhone apps works fine in both all iPhone models and even in iPad (simulator), but it crashes when I run this app on a iPad devices.
Detail :
I have 3 buttons in my project; when I click button (any button out of 3 buttons) web service gets called, and I get response for Collection view, Mostly times it crashes (ONLY IN IPAD) when I click any button out of theses. But it does not crash on iphone and on iPad (simulator).
Crashes : I receive one crash (crash occur randomly) at one time out of three times:
Error 1:
Terminating app due to uncaught exception '
NSInvalidArgumentException
', reason: '-[BestMatchRequester
everyBodyResponseData:]
: unrecognized selector sent to instance 0x14662aa0'
Error 2:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UICollectionView recieved layout attributes for a cell with an index path that does not exist:
<NSIndexPath: 0x145ecc10> {length = 2, path = 1 - 0}
'
Error 3:
demoproject(183,0x3c8c818c) malloc: * error for object 0x156f8ea0: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug (lldb)
Please note that this app works fine on iPhone and even on iPad simulator.