(void)scrollViewContentOffsetDidChange:(NSDictionary *)change方法中的if(self.window == nil) return;注释掉应该没问题了