var totalBarHeight : CGFloat = UIApplication.shared.statusBarFrame.size.height
self.edgesForExtendedLayout = []
//Adding NavigationBar height to total bar height
if let navHeight = self.navigationController?.navigationBar.frame.size.height {
totalBarHeight += navHeight
}