首页 > 代码库 > iOS 热点、通话时候TabView的Frame调整

iOS 热点、通话时候TabView的Frame调整

- (void)application:(UIApplication *)application didChangeStatusBarFrame:(CGRect)oldStatusBarFrame
{
  float height = application.statusBarFrame.size.height;
  CGRect frame = self.mainCtrl.tabView.frame;

  if (height > 20.0) {
  frame.origin.y = kDeviceHeight - 49 - 20;
  } else {
  frame.origin.y = kDeviceHeight - 49;
  }
  self.mainCtrl.tabView.frame = frame;
}

iOS 热点、通话时候TabView的Frame调整