-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5c4e632
Showing
27 changed files
with
2,051 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "FRDLivelyButton" | ||
s.version = "1.0" | ||
s.summary = "Lively button." | ||
s.description = "CWStatusBarNotification is a library allows you to present a beautiful text-based notification in the status bar." | ||
s.homepage = "http://github.com/sebastienwindal/FRDLivelyButton" | ||
s.screenshots = "https://raw.github.com/sebastienwindal/FRDLivelyButton/master/screenshots/screenshot.png" | ||
s.license = { :type => 'MIT', :file => 'LICENSE' } | ||
s.author = { "Sebastien Windal" => "[email protected]" } | ||
s.platform = :ios, '7.0' | ||
s.source = { :git => "https://github.com/sebastienwindal/FRDLivelyButton.git", | ||
:tag => s.version.to_s } | ||
s.source_files = 'FRDLivelyButton' | ||
s.requires_arc = true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// | ||
// FRDLivelyButton.h | ||
// FRDLivelyButton | ||
// | ||
// Created by Sebastien Windal on 2/24/14. | ||
// | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
|
||
typedef enum { | ||
kFRDLivelyButtonStyleHamburger, | ||
kFRDLivelyButtonStyleClose, | ||
kFRDLivelyButtonStylePlus, | ||
kFRDLivelyButtonStyleCirclePlus, | ||
kFRDLivelyButtonStyleCircleClose | ||
} kFRDLivelyButtonStyle; | ||
|
||
@interface FRDLivelyButton : UIButton | ||
|
||
-(kFRDLivelyButtonStyle) buttonStyle; | ||
|
||
-(void) setStyle:(kFRDLivelyButtonStyle)style animated:(BOOL)animated; | ||
|
||
@property (nonatomic, strong) NSDictionary *options; | ||
+(NSDictionary *) defaultOptions; | ||
|
||
// button customization options: | ||
|
||
// scale to apply to the button CGPath(s) when the button is pressed. Default is 0.9: | ||
extern NSString *const kFRDLivelyButtonHighlightScale; | ||
// the button CGPaths stroke width, default 1.0f pixel | ||
extern NSString *const kFRDLivelyButtonLineWidth; | ||
// the button CGPaths stroke color, default is black | ||
extern NSString *const kFRDLivelyButtonColor; | ||
// the button CGPaths stroke color when highlighted, default is light gray | ||
extern NSString *const kFRDLivelyButtonHighlightedColor; | ||
// duration in second of the highlight (pressed down) animation, default 0.1 | ||
extern NSString *const kFRDLivelyButtonHighlightAnimationDuration; | ||
// duration in second of the unhighlight (button release) animation, defualt 0.15 | ||
extern NSString *const kFRDLivelyButtonUnHighlightAnimationDuration; | ||
// duration in second of the style change animation, default 0.3 | ||
extern NSString *const kFRDLivelyButtonStyleChangeAnimationDuration; | ||
|
||
|
||
@end |
Oops, something went wrong.