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