View Controller を使用したメモリの放棄について質問があります。
別のナビゲーション コントローラーを表示するナビゲーション バー ボタンがあります。すべてがうまく機能しますが、生成分析を実行すると、以下の newTransaction メソッドに関連する放棄メモリがあるようです。私の最初のスナップショットの 2 つで表示されますが、その後はゼロの成長を示します。私の質問は、コントローラーを正しく表示している (ARC を使用している) か、コントローラーの表示方法を変更する必要があるかということだと思います。
#pragma mark - Nav bar button actions
- (void)newTransaction
{
NewTransactionTableViewController * transactionController = [[NewTransactionTableViewController alloc] initWithStyle:UITableViewStyleGrouped];
transactionController.transactionDelegate = self;
UINavigationController * addTransactionNavController = [[UINavigationController alloc] initWithRootViewController:transactionController];
[self presentViewController:addTransactionNavController animated:YES completion:nil];
}
- (void)dismissNewTransactionView //Delegate Method
{
[self dismissViewControllerAnimated:YES completion:nil];
}