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
try
{
//Run some code here
}
catch(err)
{
//Handle errors here
}
is there something in Objective-C?
If so, what is the syntax?
thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…