iphone: try end try

后端 未结 3 1174
-上瘾入骨i
-上瘾入骨i 2020-12-04 03:53

Is there in objective-C any way to see if it is possible to do a certain task without risking crash the application?

Other languages like javascript have

         


        
3条回答
  •  抹茶落季
    2020-12-04 04:37

    The real question is, what are you trying to do in that error catching block?

    There are different ways to hook into different kinds of errors. What kind of code specifically are you looking to wrap in a block like that?

提交回复
热议问题