([MyArray ObjectAtIndex:myindexpath.row])
例外をスローせずにこれを実行できるように、ある種の catch ステートメントを記述する方法はありますか?
つまり、次のような式を書きたいと思います。
if ([MyArray ObjectAtIndex:myindexpath.row]) {
// do some stuff if the object is in the array
else {
// do some other stuff
}
([MyArray ObjectAtIndex:myindexpath.row])
例外をスローせずにこれを実行できるように、ある種の catch ステートメントを記述する方法はありますか?
つまり、次のような式を書きたいと思います。
if ([MyArray ObjectAtIndex:myindexpath.row]) {
// do some stuff if the object is in the array
else {
// do some other stuff
}