开发者

Save Data Between Screens

I have an iPhone app with a form that has terms and conditions. When the user taps on the terms and conditions link, it brings them to another screen within the application that shows them.

Now, when they tap away and come back they lose all of the informatio开发者_如何学运维n they placed into the fields. Is there any way of saving this data in the forms short of storing everything in a dictionary when they leave and when the view reloads filling it back?


Can you use a UIAlertView for the terms and conditions? I've used this in a few apps. Longer text automatically creates a scroll in the alert. This will keep you from needing to leave the screen at all.


You will need to have some way of saving that data when the user leaves the screen using a dictionary or some other means. So the short answer is no.

A longer answer is that you could change how you are navigating to the new screens and prevent this screen from getting dumped when you move on.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜