开发者

iPhone--passing data between views in tabbar

I am writing an Tab-Based iPhone application (3.1.2). The purpose of this application is to gather and process data from the GPS, accelerometer, etc. from one view, and then, once data collection has finished, pass this data to another view in order to graph the values. What is the best way to pass this data? Would it make sense to use SQLite or CoreData, or is there some other more expedient method? The graphing and data collection both work separately, but I am at a loss for how to pass the values between the two. I have read that this is frowned upon, but can I reference the instance of the graphing viewcontroller from th开发者_如何学Ce application's UITabBarController in order to pass the data?

Thanks,

James


does your graphing viewcontroller show a graph of the most recent data? In that case you might not have to pass it anything. It can simply open te database and ask for the latest data. Your collecting view does the reverse, it opens the database and inserts data.

So no connection between the views. They both simply work on the database directly.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜