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

7.5k views Asked by At

enter image description here

here I attached my snapshots when run my project, It shows on exception like Thread 1:EXC_BAD_ACCESS(code=1,address=0x20004018, I don't no how to solve this issue ...can anyone help me??

2

There are 2 answers

1
Thakur Anil On

EXC_BAD_ACCESS means there is no class of instance is Execute. Check out Your pageName object. i think it is not properly decleared or Intialize

0
bbum On

Since pageName is a static string, it can't be the cause of this.

So, it has to be one of two things:

  • tab was not correctly initialized prior to being passed to that method

  • the setTitle: method on the MSTabBarCollectionViewCell is doing something weird.

You'll need to post more code (like how the tab object is initialized and how the method that is crashing is called) to get a more specific answer.