Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pikacode committed Nov 6, 2017
1 parent 3e70924 commit b67664f
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion EBBannerView/Classes/EBBannerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ +(void)sharedBannerViewInit{
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sharedWindow = [EBBannerWindow sharedWindow];
sharedBannerViews = [[NSBundle mainBundle] loadNibNamed:@"EBBannerView" owner:nil options:nil];
sharedBannerViews = [[NSBundle bundleForClass:self.class] loadNibNamed:@"EBBannerView" owner:nil options:nil];
[sharedBannerViews enumerateObjectsUsingBlock:^(EBBannerView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
[[NSNotificationCenter defaultCenter] addObserver:obj selector:@selector(applicationDidChangeStatusBarOrientationNotification) name:UIApplicationDidChangeStatusBarOrientationNotification object:nil];
[obj addGestureRecognizer];
Expand Down
2 changes: 1 addition & 1 deletion EBBannerView/Classes/EBBannerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ @implementation EBBannerViewController

- (instancetype)init
{
self = [self initWithNibName:@"EBBannerViewController" bundle:nil];
self = [self initWithNibName:@"EBBannerViewController" bundle:[NSBundle bundleForClass:self.class]];
if (self) {

}
Expand Down
Binary file modified demo/.DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions demo/demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = T9JXS6ZE45;
INFOPLIST_FILE = demo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
Expand All @@ -488,7 +488,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = T9JXS6ZE45;
INFOPLIST_FILE = demo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
Expand Down
Binary file not shown.

0 comments on commit b67664f

Please sign in to comment.