check animated flag in setFrontViewFrameLinearly:animated:duration:options:completion method