I am new to iPhone,
Our Team created an App and uploaded to "AppStore", We integrated "Bug Sense" also.
Now our app got negative reviews because of crash, We are tested our App in iPhone/iPad 6.1.3
In my bug sense we got this report like below:
1st Error:
-[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array [open]
2nd Error:
-[__NSArrayM objectAtIndex:]: index 61 beyond bounds for empty array [open]
Now IN my project i placed @try{ } catch
blocks to the methods which uses "objectAtIndex
" to prevent the crash,
and i placed the condition also i.e., if the array count is grater than "0" then only it will enter in to my condition which uses "objectAtIndex
"
My question is, can we prevent the above errors crash by using @try, catch mechanism
.
Thanks in Advance