Skip to content

Commit ad74a14

Browse files
committed
update
1 parent 88f83b1 commit ad74a14

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

EBForeNotification/Classes/EBForeNotification.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ +(void)showBannerWithUserInfo:(NSDictionary*)userInfo soundID:(int)soundID isIos
5454
if (SharedBannerView) {
5555
SharedBannerView = nil;
5656
}
57-
NSArray *banners = [[NSBundle mainBundle] loadNibNamed:@"EBBannerView" owner:nil options:nil];
57+
NSArray *banners = [[NSBundle bundleForClass:[self class]] loadNibNamed:@"EBBannerView" owner:nil options:nil];
5858
if (isIos10) {
5959
SharedBannerView = banners[1];
6060
}else{

demo/iOS-Foreground-Push-Notification/iOS-Foreground-Push-Notification/EBForeNotification/Classes/EBForeNotification.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ +(void)showBannerWithUserInfo:(NSDictionary*)userInfo soundID:(int)soundID isIos
5454
if (SharedBannerView) {
5555
SharedBannerView = nil;
5656
}
57-
NSArray *banners = [[NSBundle mainBundle] loadNibNamed:@"EBBannerView" owner:nil options:nil];
57+
NSArray *banners = [[NSBundle bundleForClass:[self class]] loadNibNamed:@"EBBannerView" owner:nil options:nil];
5858
if (isIos10) {
5959
SharedBannerView = banners[1];
6060
}else{

0 commit comments

Comments
 (0)