iOS6 version has problem that when status bar is hidden, height value is set to 768 - 40