Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background view's bg color will change on setting dimmedMaskAlpha later #76

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
9 changes: 4 additions & 5 deletions KLCPopup.podspec
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
Pod::Spec.new do |s|
s.name = "KLCPopup"
s.version = "1.1"
s.version = "1.1.1"
s.summary = "KLCPopup is a simple and flexible iOS class for presenting any custom view as a popup"
s.homepage = "https://github.com/jmascia/KLCPopup"
s.author = {"Jeff Mascia" => "http://jeffmascia.com"}
s.homepage = "https://github.com/sumit-nathany/KLCPopup"
s.authors = {"Jeff Mascia" => "http://jeffmascia.com", "Sumit Nathany" => "sumit.nathany@gmail.com"}
s.source_files = 'KLCPopup', 'KLCPopup/*.{h,m}'
s.source = {:git => 'https://github.com/jmascia/KLCPopup.git', :tag => s.version.to_s}
s.source = {:git => 'https://github.com/sumit-nathany/KLCPopup.git', :tag => s.version.to_s}
s.frameworks = 'UIKit'
s.requires_arc = true
s.platform = :ios, '7.0'
s.license = {
:type => 'MIT',
:file => 'LICENSE'
}

end
5 changes: 5 additions & 0 deletions KLCPopup/KLCPopup.m
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ - (void)showAtCenter:(CGPoint)center inView:(UIView *)view withDuration:(NSTimeI
[self showWithParameters:[NSDictionary dictionaryWithDictionary:parameters]];
}

- (void)setDimmedMaskAlpha:(CGFloat)dimmedMaskAlpha
{
_dimmedMaskAlpha = dimmedMaskAlpha;
self.backgroundView.backgroundColor = [self.backgroundView.backgroundColor colorWithAlphaComponent:dimmedMaskAlpha];
}

- (void)dismiss:(BOOL)animated {

Expand Down
2 changes: 1 addition & 1 deletion KLCPopupExample/KLCPopupExample/KLCPopupExample-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<string>1.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down