UIAlertView fails to show and results in “EXC_BAD_ACCESS” error

前端 未结 6 2107
一向
一向 2021-01-21 01:05

A method is called when a return button on the keyboard is pressed. After calling another method which returns an integer a message is created based on that integer. The message

6条回答
  •  半阙折子戏
    2021-01-21 01:21

    Try it with NSZombieEnabled = YES.

    • Go into the Info of you Executable.
    • Click on the Arguments tab.
    • Click + on "Variables to be set in the environment."
    • Type NSZombieEnable and YES.

    When the memory is released that has already been released, NSZombie will display the address, then you can use Instruments to find the actual object. Corbin's Treehouse has a good overview of how to do this: Instruments on Leopard: How to debug those random crashes in your Cocoa app

提交回复
热议问题