App "crashes" when touching down on UITextField

Discussion in 'iOS Programming' started by tutiplain, Apr 29, 2011.

  1. tutiplain
    Expand Collapse
    macrumors member

    Feb 4, 2011
    Hi everyone,

    My project is exhibiting a particularly strange behavior. I have a UIViewController subclass which has been pushed into a UINavigationController with pushViewController:. In the UIViewController, there are some UITextFields and a UITableView whose delegate and data source is set to the UIViewController subclass (I manually implement UITableViewDataSource and UITableViewDelegate). The thing is, whenever I click inside one of the UITextFields to edit it, program execution stops, like if it hit a debugger breakpoint. Only, the "breakpoint" stops on this line on main.m

    int retVal = UIApplicationMain(argc, argv, nil, nil);
    Beside the line, the following text appears

    Thread 1: Program recieved signal: 'EXC_BAD_ACCESS'
    There are no events currently connected to the UITextFields, so their default behavior should be to show which ever keyboard I specified on IB.

    No error messages are reported on the gdb pane. I am using XCode 4.
    Can anyone help me troubleshoot this error?

    Thanks in advance.
  2. tutiplain
    Expand Collapse
    thread starter macrumors member

    Feb 4, 2011

    I managed to solve it on my own. It seems there was a memory leak of some sort. I removed unnecessary [release] statements and problem solved!

Share This Page