Skip to content

Commit

Permalink
fix bundle load issue for cocoapods
Browse files Browse the repository at this point in the history
fix bundle load issue for cocoapods
  • Loading branch information
liu044100 committed Feb 27, 2016
1 parent 4bd0c70 commit 33b9b06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions SmileAuth/Classes/SmileAuthenticator.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#define kTouchIDIcon @"smile_Touch_ID"

static NSString *kStoryBoardName = @"SmileSettingVC";
static NSString *kSmileSettingNaviID = @"smileSettingsNavi";

#define SmileTouchID_DispatchMainThread(block, ...) if(block) dispatch_async(dispatch_get_main_queue(), ^{ block(__VA_ARGS__); })

Expand Down Expand Up @@ -108,9 +107,11 @@ -(void)presentAuthViewControllerAnimated:(BOOL)animated{

self.isShowingAuthVC = YES;

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:kStoryBoardName bundle: nil];
NSBundle *bundle = [NSBundle bundleForClass: self.class];

UINavigationController *naviVC = [storyboard instantiateViewControllerWithIdentifier:kSmileSettingNaviID];
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:kStoryBoardName bundle: bundle];

UINavigationController *naviVC = [storyboard instantiateInitialViewController];

[self.rootVC presentViewController:naviVC animated:animated completion:^{
[[NSNotificationCenter defaultCenter] postNotificationName:SmileTouchID_Presented_AuthVC_Notification object:nil];
Expand Down
4 changes: 2 additions & 2 deletions SmileTouchID.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SmileTouchID"
s.version = "0.1.3"
s.version = "0.1.4"
s.summary = "A Library for configure Touch ID & passcode conveniently"
s.description = <<-DESC
1. Handle all complicated things about Touch ID & Passcode. You just need to write a few simple code to integrate Touch ID & Passcode to your app.
Expand All @@ -17,7 +17,7 @@ Pod::Spec.new do |s|
s.author = { 'Rain' => '[email protected]' }
s.social_media_url = "https://dribbble.com/yuchenliu"


s.platform = :ios, '7.0'
s.requires_arc = true
s.source = { :git => "https://github.com/liu044100/SmileTouchID.git", :tag => s.version.to_s}
Expand Down

0 comments on commit 33b9b06

Please sign in to comment.