Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
uiplugin: fix container plugin example
Browse files Browse the repository at this point in the history
  • Loading branch information
fcapinho committed May 7, 2015
1 parent c962741 commit 1985bcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 1 addition & 3 deletions Pod/Classes/Base/CLPLoader.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ - (instancetype)init
self = [super init];
if (self) {
_playbackPlugins = @[[CLPAVFoundationPlayback class]];
//TODO enable container plugins
//_containerPlugins = @[[CLPSpinnerThreeBouncePlugin class]];
_containerPlugins = @[];
_containerPlugins = @[[CLPSpinnerThreeBouncePlugin class]];
_corePlugins = @[];
}
return self;
Expand Down
11 changes: 4 additions & 7 deletions Pod/Classes/Plugins/Container/CLPSpinnerThreeBouncePlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,12 @@ - (instancetype)init
loadingLabel.layer.masksToBounds = NO;
[loadingLabel sizeToFit];
loadingLabel.hidden = YES;

[self addSubview:loadingLabel];
}
return self;
}

- (UIView *)view
{
return loadingLabel;
}

- (void)wasInstalled
{
[super wasInstalled];
Expand Down Expand Up @@ -60,11 +57,11 @@ - (void)bindEventListeners
{
__weak typeof(loadingLabel) weakLabel = loadingLabel;
[self listenTo:self.container eventName:CLPContainerEventPause callback:^(NSDictionary *userInfo) {
// weakLabel.hidden = NO;
weakLabel.hidden = NO;
}];

[self listenTo:self.container eventName:CLPContainerEventPlay callback:^(NSDictionary *userInfo) {
// weakLabel.hidden = YES;
weakLabel.hidden = YES;
}];
}

Expand Down

0 comments on commit 1985bcc

Please sign in to comment.