Skip to content
This repository has been archived by the owner on Apr 27, 2019. It is now read-only.

Commit

Permalink
Small bug fix and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Carson Perrotti committed Jun 24, 2015
1 parent 7417ca6 commit 033ab23
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CNPPopupController.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "CNPPopupController"
s.version = "0.2.0"
s.version = "0.2.1"
s.summary = "A versatile popup for iOS"

s.description = <<-DESC
Expand Down Expand Up @@ -77,7 +77,7 @@ Pod::Spec.new do |s|
# Supports git, hg, bzr, svn and HTTP.
#

s.source = { :git => "https://github.com/carsonperrotti/CNPPopupController.git", :tag => "0.2.0" }
s.source = { :git => "https://github.com/carsonperrotti/CNPPopupController.git", :tag => "0.2.1" }


# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand Down
5 changes: 5 additions & 0 deletions CNPPopupController/CNPPopupController.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ @interface CNPPopupController () <UIGestureRecognizerDelegate>
@property (nonatomic, strong) UITapGestureRecognizer *backgroundTapRecognizer;
@property (nonatomic, strong) UIView *popupView;
@property (nonatomic, strong) NSArray *views;
@property (nonatomic) BOOL dismissAnimated;

@end

Expand Down Expand Up @@ -242,6 +243,9 @@ - (void)presentPopupControllerAnimated:(BOOL)flag {
[self.delegate popupControllerWillPresent:self];
}

// Keep a record of if the popup was presented with animation
self.dismissAnimated = flag;

[self applyTheme];
[self calculateContentSizeThatFits:CGSizeMake([self popupWidth], self.maskView.bounds.size.height) andUpdateLayout:YES];
self.popupView.center = [self originPoint];
Expand Down Expand Up @@ -350,6 +354,7 @@ - (CGFloat)popupWidth {
- (void)handleBackgroundTapGesture:(id)sender {
if (self.theme.shouldDismissOnBackgroundTouch) {
[self.popupView endEditing:YES];
[self dismissPopupControllerAnimated:self.dismissAnimated];
}
}

Expand Down
4 changes: 2 additions & 2 deletions CNPPopupControllerExample/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.2</string>
<string>0.2.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>517</string>
<string>519</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#CNPPopupController

##What's new
** Updated: June 14th, 2015 v0.2.0 **
##Version History
**June 24th, 2015 v0.2.1**
- Bug fix for dismissing on background mask touch.

**June 14th, 2015 v0.2.0**
- Completely rewritten. *Started from the bottom, now we're here.*
- Ther are some minor API changes in v0.2.0. I tried to keep it as close to the last version as possible. See the example project if you need some help getting it set up.
- Custom view support (You can add anything, as it's contents as long as it is a UIView or subclass of UIView
Expand Down

0 comments on commit 033ab23

Please sign in to comment.