Skip to content

Commit

Permalink
Resetting image on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaVitale committed Mar 17, 2019
1 parent 08bde5c commit e3175c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion ios/iphone/Classes/AvImageviewImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ -(void)displayImage:(id)imageObj
UIImage *placeholderImage = (placeholderImagePath != nil) ? [self loadLocalImage:placeholderImagePath] : nil;
UIImage *brokenLinkImage = (brokenLinkImagePath != nil) ? [self loadLocalImage:brokenLinkImagePath] : nil;

if ([imageObj isKindOfClass:[NSNull class]])
if ([imageObj isKindOfClass:[NSNull class]]) {
[imageView setImage:nil];

return;
}

[imageView sd_cancelCurrentAnimationImagesLoad];

Expand Down
2 changes: 1 addition & 1 deletion ios/iphone/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 1.5.0
version: 1.5.1
apiversion: 2
architectures: armv7 arm64 i386 x86_64
description: andreavitale-imageview
Expand Down
2 changes: 1 addition & 1 deletion ios/iphone/module.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/XcodeBuildSystem/400-Build_Configurations/build_configs.html
//

CURRENT_MODULE_VERSION="1.2.0"
CURRENT_MODULE_VERSION="1.5.1"
FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/av.imageview/$(CURRENT_MODULE_VERSION)/platform

OTHER_LDFLAGS=$(inherited)
Expand Down
2 changes: 1 addition & 1 deletion ios/iphone/titanium.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// OF YOUR TITANIUM SDK YOU'RE BUILDING FOR
//
//
TITANIUM_SDK_VERSION = 6.3.0.GA
TITANIUM_SDK_VERSION = 7.5.0.GA


//
Expand Down

0 comments on commit e3175c2

Please sign in to comment.