Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AFDropdownNotification.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "AFDropdownNotification"
s.version = "1.1"
s.version = "1.2"
s.summary = "Dropdown notification view for iOS"

s.description = "Simple and iOS 7-8 design compliant dropdown notification view for iOS."
Expand All @@ -15,7 +15,7 @@ Pod::Spec.new do |s|

s.platform = :ios

s.source = { :git => "https://github.com/AlvaroFranco/AFDropdownNotification.git", :tag => 'v1.1' }
s.source = { :git => "https://github.com/Nykho/AFDropdownNotification.git", :tag => 'v1.2' }

s.screenshot = "https://raw.githubusercontent.com/AlvaroFranco/AFDropdownNotification/master/img/preview.gif?token=ABV8uk1ShHPyKmhdNNJsvN3jYyuhgxJGks5UmHMwwA%3D%3D"

Expand Down
12 changes: 3 additions & 9 deletions Classes/AFDropdownNotification.m
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,13 @@ -(void)presentInView:(UIView *)view withGravityAnimation:(BOOL)animation {
_isBeingShown = YES;
_gravityAnimation = animation;
}

_internalBlock = ^(AFDropdownNotificationEvent event) {

};
}

-(void)topButtonTapped {

[self.notificationDelegate dropdownNotificationTopButtonTapped];

if (_internalBlock) {

_internalBlock(AFDropdownNotificationEventTopButton);
}
}
Expand All @@ -201,10 +196,9 @@ -(void)bottomButtonTapped {

[self.notificationDelegate dropdownNotificationBottomButtonTapped];

// if (_internalBlock) {

_internalBlock(AFDropdownNotificationEventBottomButton);
// }
if (_internalBlock) {
_internalBlock(AFDropdownNotificationEventBottomButton);
}
}

-(void)dismiss:(id)sender {
Expand Down