Saturday, September 28, 2013

Android and IOS exception handling contrast

In Android (Java), we often use exception handling try, catch to handle the exception, and in some functions, the system mandatory for you plus try, catch, such as thread processing. But in IOS, I almost forgot it exception handling, although IOS also @ try, @ catch, but rarely used, whether in their own projects, or the official examples.
Why do we talk about why Android and IOS exception handling in different handle it like this? ?

Reply:
IOS is a system for personal feeling smoother, A is A, B is B, if A becomes B, you have to know why the error, and must be dealt with to find out. Prevent abnormal vague fool in the past.
In Android (Java), due to the pursuit of Java EE enterprise application itself is stable, so together with a large number of exception handling, it also inherited the Android.
Reply:
OC comparator OLD, so
Reply:
IOS encapsulation personally feel better

No comments:

Post a Comment