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 @@ -