プロジェクトから plist を読み込もうとしていますが、誤って plist を削除するまでは機能していました。plist には、それぞれ 2 つの要素を持つ 5 つの配列があります。プログラムが配列の範囲を超えてアクセスしようとしていることは知っていますが、このインデックスがどこに設定されているかはわかりません。攻撃対象のコードは次のとおりです。このコードは 2 回正常に実行された後、何らかの理由で 3 回目にアクセスしようとし、最初の行で実行されます。なぜでしょうか?
次の例外がスローされます。
NSRangeException -[_NSCFARRAY objectAtIndex] index(2) beyond bounds (2)
助けてください、これは月曜日に期限が切れる最終プロジェクトのためのもので、今は最初からやり直さなければならないと感じています.
NSString *nameOfAccount = [account objectAtIndex:indexPath.row];
cell.textLabel.text = nameOfAccount;
NSString *accountNumber = [number objectAtIndex:indexPath.row];
cell.detailTextLabel.text = accountNumber;