阅读背景:

如何使用NSMutableArray作为本地缓存

来源:互联网 

I have a UtilityApp and UITableViewController pushed from the FlipsideViewController. I have modified few cells in the UITableView to embed UITextField and UIButton(save button). The other table view cells would behave normally. On click of a normal UITableViewCell, i would again push the same UITableViewController which has the another set of UITableViewCells. Now my problem is, when i click on the save button i want to add a NSObject onto a NSMUtableArray. And when i go to the next controller(ie., the same UITableViewController) and click on the save button, again i want to add a NSObject to NSMutableArray. Thus the NSMutableArray behaves as a local cache for me. Hows it possible? Basically i want to declare the NSMutableArray somewhere outside the UITableViewController and keep adding NSObject instances to it. Please help me out.I have a UtilityApp and UITableViewController p




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: