ios full screen
improve code