Quote:
Originally Posted by MrGilou
Hi everyone.
I have a simple application with 3 tabs connected to 3 simple views.
I added a button to the last tab.
Added an outlet In the controller linked to it.
Until here I can build my app and navigate through the 3 tabs without any problem.
But when I connect my UIButton outlet to the rounded Button by draging it in IB, i can build the app but as soon as I go to the last tab the app exit.
It's been 48h I'm on it and I can not figure out what's wrong.
Do anyone has an idea ?
Is there is a way to see an error message when the app exit ?
Thanks a lot for your help
|
When you run the app in XCode, what do you see in the stack trace after the crash? The stack trace will usually give you more information than just the error message. Make sure you are running the debug version of the app, and from XCode.
Usually a crash like that when you load a nib-file is caused by the nib-file trying to create a custom object that is no longer defined in your code.
Say I had a custom button type called "GreenButton". If I create a nib-file in IB that uses a GreenButton, and then I change the name of the GreenButton class to "BigGreenButton", my app will crash when I load the nib-file.