iOS4 (UIAlertView) why this code causes memory leaks?

后端 未结 1 1797
轮回少年
轮回少年 2020-12-20 07:47

suppose you create a new iOS app from scratch, with just one single window. then you put this code in the appDelegate application didFinishLaunching method :



        
相关标签:
1条回答
  • 2020-12-20 08:45

    Don't check for leaks in a simulator. It doesn't have the same memory model so reports leaks when there aren't any.

    Test on a real device and if the leak is still there, report it as a bug to Apple :)

    0 讨论(0)
提交回复
热议问题