test if it hide nav bar in iOS