Skip to content

Simple Popup Notification inspired by Android Toast.

License

Notifications You must be signed in to change notification settings

carabina/KSToastView

 
 

Repository files navigation

###KSToastView

Simple Popup Notification inspired by Android Toast Widget.

ScreenShot

###KSToastView Configure

+ (void)ks_setAppearanceBackgroundColor:(UIColor *)backgroundColor;
+ (void)ks_setAppearanceCornerRadius:(CGFloat)cornerRadius;
+ (void)ks_setAppearanceMaxHeight:(CGFloat)maxHeight;
+ (void)ks_setAppearanceMaxWidth:(CGFloat)maxWidth;
+ (void)ks_setAppearanceOffsetBottom:(CGFloat)offsetBottom;
+ (void)ks_setAppearanceTextAligment:(NSTextAlignment)textAlignment;
+ (void)ks_setAppearanceTextColor:(UIColor *)textColor;
+ (void)ks_setAppearanceTextFont:(UIFont *)textFont;
+ (void)ks_setAppearanceTextPadding:(CGFloat)textPadding;
+ (void)ks_setToastViewShowDuration:(NSTimeInterval)duration;

###KSToastView Show

+ (void)ks_showToast:(id)toast;
+ (void)ks_showToast:(id)toast duration:(NSTimeInterval)duration;

###Usage

/// show NSString
[KSToastView ks_showToast:@"Across the Great Wall we can reach every corner in the world."];

/// show NSObject description with 2 seconds.
[KSToastView ks_showToast:self duration:2.0f];

###Installation Just add KSToastView.h/m files to your Project,

or use CocoaPods.

pod 'KSToastView', '0.3'

###License The MIT License (MIT)

About

Simple Popup Notification inspired by Android Toast.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 95.7%
  • Ruby 4.3%