Hi,
I have a UILabel Outlet, and everytime I access its text property with multiple characters, then it will crash and gives me EXC_BAD_ACCESS. Its very weird and I can't find any solution for this issue.
Thanks. sasayins
Hi,
I have a UILabel Outlet, and everytime I access its text property with multiple characters, then it will crash and gives me EXC_BAD_ACCESS. Its very weird and I can't find any solution for this issue.
Thanks. sasayins
Did you synthesize the property? are you releasing it somewhere by mistake? gotta put some code up in order for us to help you...
You probably forgot to link the outlet in Interface Builder to the desired UILabel. This means that the UILabel is currently nil (non existent). Drag a line from the file owner to the UILabel to connect the outlet in Interface Builder.
When it got EXC _BAD _ACCESS, would you mind get the backtrace and post it here?
Or better: post the code where you access/modify the UILabel.
Make sure that your outlet does not have the same name as a property of one of the super classes of your view controller. For example, UIViewController has a title property, and if you create an outlet with the name of "title" you are overriding this property and will most likely have problems.