From 470325c3966644cb4dbd1a73ab21aef71ec8ad83 Mon Sep 17 00:00:00 2001 From: Damjan Dimovski Date: Thu, 24 Nov 2016 14:44:23 +0100 Subject: [PATCH] Fixed app name and fonts --- EBForeNotification/Classes/EBBannerView.m | 2 +- EBForeNotification/Classes/EBBannerView.xib | 46 +++++++++++---------- EBForeNotification/EBForeNotification.h | 4 +- 3 files changed, 27 insertions(+), 25 deletions(-) diff --git a/EBForeNotification/Classes/EBBannerView.m b/EBForeNotification/Classes/EBBannerView.m index 76d43ec..f6fec5b 100644 --- a/EBForeNotification/Classes/EBBannerView.m +++ b/EBForeNotification/Classes/EBBannerView.m @@ -63,7 +63,7 @@ -(void)setUserInfo:(NSDictionary *)userInfo{ appIcon = [UIImage imageNamed:@"AppIcon80x80"]; } [self.icon_image setImage:appIcon]; - NSDictionary *infoDictionary = [[NSBundle bundleForClass:[self class]] infoDictionary]; + NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; // app名称 NSString *appName = [infoDictionary objectForKey:@"CFBundleName"]; if (!appName) { diff --git a/EBForeNotification/Classes/EBBannerView.xib b/EBForeNotification/Classes/EBBannerView.xib index 043071e..d039eff 100644 --- a/EBForeNotification/Classes/EBBannerView.xib +++ b/EBForeNotification/Classes/EBBannerView.xib @@ -1,9 +1,11 @@ - - + + + + + - - - + + @@ -15,14 +17,14 @@ -