Skip to content

Instantly share code, notes, and snippets.

@acalism
Created July 24, 2017 09:20
Show Gist options
  • Select an option

  • Save acalism/ec56b3dc52fe33ddc92451b700ad27ca to your computer and use it in GitHub Desktop.

Select an option

Save acalism/ec56b3dc52fe33ddc92451b700ad27ca to your computer and use it in GitHub Desktop.
// Cause of 'unrecognized selector' crash
// 1. 内存问题,该对象已释放,垃圾内存区域被某个新的对象取代,而该新的对象很可能不认识这个selector
// 2. 头文件加到工程里了,但对应的.m文件未加入到工程设置的“compile sources”里————这个很诡异,Xcode并不会报错,只会运行时崩溃。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment