fix presentation then dismiss crach bug

changed animation layer delegate method actionForLayer:forKey: