有時在tableview的頭部會憑空多出一塊空白區域,這是因爲ios會"貼心"的多分配一些用於滑動的多餘inset。ios
消除這一空白的方法是,在tableview所在的controller裏blog
self.automaticallyAdjustsScrollViewInsets = NO;