diff --git a/Pod/Classes/ios/NYTPhotosOverlayView.m b/Pod/Classes/ios/NYTPhotosOverlayView.m index d9158356..fc001066 100644 --- a/Pod/Classes/ios/NYTPhotosOverlayView.m +++ b/Pod/Classes/ios/NYTPhotosOverlayView.m @@ -51,7 +51,7 @@ - (void)layoutSubviews { [super layoutSubviews]; - if ([self.captionView respondsToSelector:@selector(setPreferredMaxLayoutWidth:)]) { + if ([self.captionView conformsToProtocol:@protocol(NYTPhotoCaptionViewLayoutWidthHinting)]) { [(id) self.captionView setPreferredMaxLayoutWidth:self.bounds.size.width]; } }