diff --git a/Classes/IDMPhotoBrowser.m b/Classes/IDMPhotoBrowser.m index 9cd39f32..f3d0643b 100644 --- a/Classes/IDMPhotoBrowser.m +++ b/Classes/IDMPhotoBrowser.m @@ -613,7 +613,9 @@ - (void)viewDidLoad { [self.view addSubview:_pagingScrollView]; // Transition animation - [self performPresentAnimation]; + if (_senderViewForAnimation) { + [self performPresentAnimation]; + } UIInterfaceOrientation currentOrientation = [UIApplication sharedApplication].statusBarOrientation;