1、app在ios8的機子上真機調試,在頁面跳轉后,在返回到上級界面,再次點擊屏幕,就出現閃退.開啟僵尸對象,打印信息如下:* -[_UIWebViewScrollView _systemGestureStateChanged:]: message sent to deallocated instance 0x3183a002、app在ios9 的機子上真機調試一切正常。
2 回答

PIPIONE
TA貢獻1829條經驗 獲得超9個贊
使用iOS8上的delegate和datasource時要格外小心。
iOS8上有些delegate和datasource是使用assign來聲明的,若不及時釋放,極易造成crash。
建議在所有使用delegate的地方,在dealloc中均將其顯示地置為nil。
如
- (void)dealloc
{
_tableView.delegate = nil;
_tableView.datasource = nil;
_scrollView.delegate = nil;
_gesture.delegate = nil;
}
- 2 回答
- 0 關注
- 983 瀏覽
添加回答
舉報
0/150
提交
取消