search

Home  >  Q&A  >  body text

ios - cellForRowAtIndexPath 使用[NSDate date]会导致内存泄露吗?

我用leaks监测到[NSDate date]会内存泄露,求解!

PHPzPHPz2893 days ago277

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-04-18 09:25:02

    [NSDate date] will create a new Object. It is estimated that your cell holds it, and then the cell does not release it, so this Object cannot be released.

    reply
    0
  • Cancelreply