diff --git a/CRToast/CRToast.m b/CRToast/CRToast.m index 38001d10..e6ebe848 100644 --- a/CRToast/CRToast.m +++ b/CRToast/CRToast.m @@ -474,7 +474,7 @@ + (void)setDefaultOptions:(NSDictionary*)defaultOptions { if (defaultOptions[kCRToastTextShadowOffsetKey]) kCRTextShadowOffsetDefault = [defaultOptions[kCRToastTextShadowOffsetKey] CGSizeValue]; if (defaultOptions[kCRToastTextMaxNumberOfLinesKey]) kCRTextMaxNumberOfLinesDefault = [defaultOptions[kCRToastTextMaxNumberOfLinesKey] integerValue]; - if (defaultOptions[kCRToastStatusBarStyleKey]) kCRStatusBarStyleDefault = [defaultOptions[kCRToastStatusBarStyleKey] integerValue]; + if (defaultOptions[kCRToastStatusBarStyleKey]) kCRStatusBarStyleDefault = [defaultOptions[kCRToastStatusBarStyleKey] integerValue]; if (defaultOptions[kCRToastSubtitleTextKey]) kCRSubtitleTextDefault = defaultOptions[kCRToastSubtitleTextKey]; if (defaultOptions[kCRToastSubtitleFontKey]) kCRSubtitleFontDefault = defaultOptions[kCRToastSubtitleFontKey]; diff --git a/CRToastDemo/AppDelegate.m b/CRToastDemo/AppDelegate.m index ed21f445..5bc4cffe 100644 --- a/CRToastDemo/AppDelegate.m +++ b/CRToastDemo/AppDelegate.m @@ -11,9 +11,9 @@ @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [CRToastManager setDefaultOptions:@{kCRToastNotificationTypeKey : @(CRToastTypeNavigationBar), - kCRToastFontKey : [UIFont fontWithName:@"HelveticaNeue-Light" size:16], - kCRToastTextColorKey : [UIColor whiteColor], - kCRToastBackgroundColorKey : [UIColor orangeColor]}]; + kCRToastFontKey : [UIFont fontWithName:@"HelveticaNeue-Light" size:16], + kCRToastTextColorKey : [UIColor whiteColor], + kCRToastBackgroundColorKey : [UIColor orangeColor]}]; self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.backgroundColor = [UIColor whiteColor]; diff --git a/CRToastDemo/MainViewController.m b/CRToastDemo/MainViewController.m index ac16ea04..964ee53b 100644 --- a/CRToastDemo/MainViewController.m +++ b/CRToastDemo/MainViewController.m @@ -129,7 +129,7 @@ - (void)keyboardWillShow:(NSNotification*)notification { 0); self.scrollView.scrollIndicatorInsets = self.scrollView.contentInset; self.scrollView.contentSize = CGSizeMake(CGRectGetWidth(self.contentView.frame), - CGRectGetMaxY(self.showNotificationButton.frame)); + CGRectGetMaxY(self.dismissNotificationButton.frame)); } - (void)keyboardWillHide:(NSNotification*)notification { @@ -139,7 +139,7 @@ - (void)keyboardWillHide:(NSNotification*)notification { 0); self.scrollView.scrollIndicatorInsets = self.scrollView.contentInset; self.scrollView.contentSize = CGSizeMake(CGRectGetWidth(self.contentView.frame), - CGRectGetMaxY(self.showNotificationButton.frame)); + CGRectGetMaxY(self.dismissNotificationButton.frame)); } - (void)orientationChanged:(NSNotification*)notification { diff --git a/CRToastDemo/MainViewController.xib b/CRToastDemo/MainViewController.xib index bc7b18df..e9b44e50 100644 --- a/CRToastDemo/MainViewController.xib +++ b/CRToastDemo/MainViewController.xib @@ -1,5 +1,5 @@ - + @@ -38,11 +38,11 @@ - + - + @@ -75,7 +75,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -107,7 +107,7 @@ - + @@ -119,7 +119,7 @@ - + @@ -132,14 +132,14 @@ - + - + - + - + - + @@ -212,7 +212,7 @@ - + @@ -234,7 +234,7 @@ - + @@ -273,7 +273,7 @@ - + @@ -285,7 +285,7 @@ - +