またリジェクトされた〜
0. 4.0 BEFORE YOU SUBMIT: INFO NEEDED
Information Needed
We began the review of your app but aren't able to continue because we need additional information about your app.
At your earliest opportunity, please review the following question(s) and provide as much detailed information as you can. The more information you can provide upfront, the sooner we can complete your review.
- You mentioned below on app description. Please provide us detailed information about it.
上限解放予定(5回->??回)
Once you reply to this message in Resolution Center with the requested information, we can proceed with your review.
0. 4.0 BEFORE YOU SUBMIT: INFO NEEDED
ここからどうやら情報が足りなかったみたいですね!
でもリジェクトってかなり難解なものかと思ってましたけど解決方法もちゃんと書いてありますし、Appleさん優しい!!ってなりますね!
とりあえず
上限解放予定(5回->??回)
の情報を詳細にしてくださいと言われたので、消しちゃいます!
上限解放予定
にしてまた審査提出してみます!!
どーか通りますように...!!!!
fatal error: Index out of rangeの原因と解決方法
Index out of rangeを直訳するとインデックスが範囲から外れている。つまり、配列の個数以上の範囲を指定しているということ。中身が4つしかないのに5個取り出してくださいと言っているようなものですね!これがエラーの原因となっているので範囲を小さくしたり、ぴったりに合わせることによってエラーは解決します。
具体的にはこのような感じです。
続きを読む
enumerate関数 要素と要素のインデックスをくれる
例
let yushas = ["戦士","魔法使い","モンク"] for (index, yusha) in yushas.enumerate() { print("\(index): \(yusha)") }
こんな感じになります。
参考サイト:
作って学ぶSwift/iOSアプリ入門 - CAMPHOR- Tech Blog
Swift 2.0でのenumerateの使い方 - Qiita