画面の 3 分の 1 を占める画像ビューが上部にあるアプリに取り組んでいます。私の質問は、ユーザーにボタンを押して好きな写真を選んでもらいたいということです。アプリで保存します。このようにして、アプリを閉じて再度開いたときに、写真はまだそこにあります。私は xcode を初めて使用します。このような質問が既にあった場合はお詫び申し上げます。探しているものが見つかりませんでした。ありがとう!
2183 次
1 に答える
2
In order to achieve this you need to:
- Ask the user to select an image from his library (here's how)
- Save the image the user selected to your app's sandbox (here's how)
- Load that image into the UIImageView at startup (here's how to save/load small amount of data, in your case you just need to save the location of the image to load it at startup)
于 2012-11-02T22:32:00.453 に答える