Merge pull request #56 from SDWebImage/bugfix_watchkit_size_arg
Fix the issue that WatchKit patch will cause other WatchKit interfaceObject with sizing issue
This commit is contained in:
commit
7ac13afbfe
|
@ -104,7 +104,7 @@ static CGSize sizeThatFitsIMP(id<UIViewProtocol> self, SEL _cmd, CGSize size) {
|
|||
NSUInteger tag = self.tag;
|
||||
id<UIViewProtocol> interfaceView = self.subviews.firstObject;
|
||||
if (tag != SDAnimatedImageInterfaceWrapperTag || !interfaceView) {
|
||||
return ((CGSize(*)(id, SEL))objc_msgSend)(self, NSSelectorFromString(SDAnimatedImageInterfaceWrapperSEL_sizeThatFits));
|
||||
return ((CGSize(*)(id, SEL, CGSize))objc_msgSend)(self, NSSelectorFromString(SDAnimatedImageInterfaceWrapperSEL_sizeThatFits), size);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue