objective c - iOS UI causes crash after pushing/popping second view controller -
in ios app, entire user interface coded programmatically, meaning no xibs or storyboards. works until add view controller via uinavigationcontroller.
the first view controller works well, , when second view controller pushed, works too. after second view controller pops itself, , first view controller re-appears, interaction of elements of user interface crashes app.
any idea may causing this?
update: screenshot of exception
there's crash log that's generated when app crashes. messages, along stack backtrace there.
you can see device's crash logs connecting mac, opening devices window, , viewing device logs.
but it's easier debug within xcode, connecting device, building , running in xcode, on device.
when app crashes (due exception), xcode can catch this, , control transferred debugger.
you can add exception breakpoint in xcode stop app exception occurs.
to add exception breakpoint, switch breakpoint navigator. click small + button @ bottom of pane, , select add exception breakpoint.
once app crashes, can @ stack backtrace. first few items on call stack in apple's code, further call view controller, showing line revealed problem.
as wrong, number of things. can't unless share code show properties objects, , (de)allocated.
Comments
Post a Comment