1

我已经在 sqlite3 中创建了一个表。现在,当我关闭或离开包含“UILabel”的“视图控制器”时,我想将最后一个数据显示保存在“UILabel”上。我怎样才能做到这一点 ?

4

1 回答 1

1

当您关闭或离开时,会调用两个函数viewController

- (void)viewWillDisappear:(BOOL)animated; // Called when the view is dismissed, covered or otherwise hidden. Default does nothing
- (void)viewDidDisappear:(BOOL)animated;  // Called after the view was dismissed, covered or otherwise hidden. Default does nothing

希望这可以帮助你..

于 2012-12-27T08:15:52.373 回答