当前位置: 代码迷 >> Access >> 运用animateWithDuration 导致exc_bad_access
  详细解决方案

运用animateWithDuration 导致exc_bad_access

热度:8853   发布时间:2013-02-26 00:00:00.0
使用animateWithDuration 导致exc_bad_access

这时看看系统设置中的other link flags是否有使用-weak_library /usr/lib/libSystem.B.dylib

如果有使用-weak-lSystem来代替

?

这种错误出现在模拟器,真机上不会。

The problem is simply a bug in the iOS Simulator. The codes works fine on the device.I've filled a radar on Apple's bug reporter (radar://9470793)EDIT: Just found out : -weak_library /usr/lib/libSystem.B.dylib breaks the iOS Simulator. Use -weak-lSystem instead.
?