Android like toast popup with many customizable parameters
- Small code
- Easy to modify
- Many customizable parameter to meet whatever your requiments are
//Transparancy
#define kBackgroundAlpha 0.4
//Margins
#define kToastWidth 290
#define kToastLeadingTrailingTextMargin 10
#define kToastTopBottomTextMargin 10
//BackgroundColor
#define kBackgroundColor [UIColor darkGrayColor]
//Border
#define kBorderColor [UIColor cyanColor]
#define kCornerRadius 5.0
#define kBorderWidth 2.0
//Message
#define kMessageTextColor [UIColor cyanColor]
#define kDefaultMessageFontSize 16
//Display time
#define kDisplayTime 1.5
This UI control can be used on all iPhones, iPods & iPads running iOS 5.0 and above.
- Add Follwing two files to your project
'ADToastView.h'
'ADToastView.m'
//1. IMPORT
#import "ADToastView.h"
//2. CREATING INSTANCE OF CONTROL
ADToastView *toastView = [[ADToastView alloc] initToastWithMessage:@"Test Toast Message"];
//3. SHOWING TOAST
[toastView show];
ADToastView works on iOS 5.0 & above versions and is compatible with ARC projects. There is no need of other frameworks/libraries
- XCode : Developed using 6.0
- Base sdk used while development : 8.1
- Testing : iOS: 6,7,8 Devices : iPad & 3.5, 4, 4.7, 5.5 inch iphones
- Component polishing