Topic 1: EXC_BAD_ACCESS (code = 1, address = 0x20004018) How to solve this?
here I have attached my pictures when starting my project, it shows an exception like Thread 1: EXC_BAD_ACCESS (code = 1, address = 0x20004018, I don't know how to solve this ... can anyone help me?
Since it pageName
is a static string, this cannot be the reason for this.
So it has to be one of two things:
-
tab
was not properly initialized before being passed to this method -
method
setTitle:
toMSTabBarCollectionViewCell
do something weird.
You will need to post more code (like how an object is initialized tab
and how the method that gets called is called) to get a more specific answer.
EXC_BAD_ACCESS means the instance class is not Execute. Check your pageName object. i think this is wrongly missed or Intialize