Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は Theos でアプリを開発しており、ランダム画像ジェネレーターを追加したいと考えています。画像の nsarray があり、arc4random () の使用方法がわかりません。サンプルコードを表示するのを手伝ってもらえますか? (:
int k = arc4random_uniform(myArray.count); UIImageView *picToShow = [myArray objectAtIndex:k]; // show image