Where is the memory leak in my UITableViewController?

后端 未结 5 642
逝去的感伤
逝去的感伤 2021-01-27 18:00

The table view works fine however when I leave the view and come back to it the second time, I get a memory leak. Probably something in the viewDidLoad just not sure.

I

5条回答
  •  盖世英雄少女心
    2021-01-27 18:14

    You have several places where you call [[XXX alloc] init] where XXX is a NSMutableArray or NSMutableString. You never release these and they are not autoreleased, thus they leak.

提交回复
热议问题