Topic 1: EXC_BAD_ACCESS (code = 1, address = 0x20004018) How to solve this?

enter image description here

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?

+3


source to share


2 answers


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:

    to MSTabBarCollectionViewCell

    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.

0


source


EXC_BAD_ACCESS means the instance class is not Execute. Check your pageName object. i think this is wrongly missed or Intialize



-1


source







All Articles