Skip to content

Commit f632c57

Browse files
committed
Fix a layout loop caused by nil image
Closes #596
1 parent b275098 commit f632c57

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

LNPopupController/LNPopupController/Private/_LNPopupBarShadowedImageView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ - (void)setContentMode:(UIViewContentMode)contentMode
9898

9999
- (void)setImage:(UIImage *)image
100100
{
101-
if([self.image isEqual:image] == NO)
101+
if(self.image != image && [self.image isEqual:image] == NO)
102102
{
103103
[super setImage:image];
104104

LNPopupControllerExample/LNPopupControllerExample/Supporting/AppDelegate.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
@interface NSBundle ()
1414

15-
- (NSString *) localizedStringForKey:(NSString *)arg1 value:(NSString *)arg2 table:(NSString *)arg3 localizations:(id)arg4;
1615
- (NSAttributedString *)localizedAttributedStringForKey:(NSString *)key value:(NSString *)value table:(NSString *)tableName localization:(id)arg4;
1716
@end
1817

0 commit comments

Comments
 (0)