Question

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

Was it helpful?

Solution

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.

OTHER TIPS

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.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top