这是因为ios 6 中的navigationBar不是透明的,而iOS7中是透明的,相差20个像素,self.navigationController.navigationBar.translucent = YES,就可以了!!!!就上移了!!!