Last layout tweaks, and we're done

This commit is contained in:
EddyVerbruggen 2014-01-25 15:52:20 +01:00
parent cbdd1027b4
commit 87f1d321d7
2 changed files with 5 additions and 43 deletions

View File

@ -1,33 +1,3 @@
/***************************************************************************
Toast+UIView.h
Toast
Version 2.2
Copyright (c) 2013 Charles Scalesse.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
***************************************************************************/
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@interface UIView (Toast) @interface UIView (Toast)

View File

@ -1,11 +1,3 @@
//
// Toast+UIView.m
// Toast
// Version 2.2
//
// Copyright 2013 Charles Scalesse.
//
#import "Toast+UIView.h" #import "Toast+UIView.h"
#import <QuartzCore/QuartzCore.h> #import <QuartzCore/QuartzCore.h>
#import <objc/runtime.h> #import <objc/runtime.h>
@ -18,15 +10,15 @@
// general appearance // general appearance
static const CGFloat CSToastMaxWidth = 0.8; // 80% of parent view width static const CGFloat CSToastMaxWidth = 0.8; // 80% of parent view width
static const CGFloat CSToastMaxHeight = 0.8; // 80% of parent view height static const CGFloat CSToastMaxHeight = 0.8; // 80% of parent view height
static const CGFloat CSToastHorizontalPadding = 10.0; static const CGFloat CSToastHorizontalPadding = 16.0;
static const CGFloat CSToastVerticalPadding = 10.0; static const CGFloat CSToastVerticalPadding = 12.0;
static const CGFloat CSToastTopBottomOffset = 10.0; static const CGFloat CSToastTopBottomOffset = 10.0;
static const CGFloat CSToastCornerRadius = 10.0; static const CGFloat CSToastCornerRadius = 20.0;
static const CGFloat CSToastOpacity = 0.8; static const CGFloat CSToastOpacity = 0.8;
static const CGFloat CSToastFontSize = 16.0; static const CGFloat CSToastFontSize = 13.0;
static const CGFloat CSToastMaxTitleLines = 0; static const CGFloat CSToastMaxTitleLines = 0;
static const CGFloat CSToastMaxMessageLines = 0; static const CGFloat CSToastMaxMessageLines = 0;
static const NSTimeInterval CSToastFadeDuration = 0.2; static const NSTimeInterval CSToastFadeDuration = 0.3;
// shadow appearance // shadow appearance
static const CGFloat CSToastShadowOpacity = 0.8; static const CGFloat CSToastShadowOpacity = 0.8;