Fixing bug with showing progress bar on ios.

This commit is contained in:
Samuel Clay 2014-10-23 16:40:49 -07:00
parent 5055da04e3
commit 721adf5d19
2 changed files with 9 additions and 4 deletions

View file

@ -34,6 +34,7 @@ UIGestureRecognizerDelegate, NJKWebViewProgressDelegate> {
//@property (strong, nonatomic) SloppySwiper *swiper;
@property (nonatomic) NJKWebViewProgressView *progressView;
- (void)resetProgressBar;
- (void)loadInitialStory;
- (IBAction) doOpenActionSheet:(id)sender;
- (IBAction)loadAddress:(id)sender;

View file

@ -42,9 +42,6 @@
[super viewDidAppear:animated];
[self.navigationController.navigationBar addSubview:progressView];
progressView.progressBarView.alpha = 0.0f;
[progressView setProgress:0 animated:NO];
[progressView setProgress:NJKInitialProgressValue animated:YES];
}
- (void)viewWillDisappear:(BOOL)animated {
@ -72,7 +69,13 @@
return YES;
}
- (void)viewDidLoad {
- (void)resetProgressBar {
progressView.progressBarView.alpha = 0.0f;
[progressView setProgress:0 animated:NO];
[progressView setProgress:NJKInitialProgressValue animated:YES];
}
- (void)viewDidLoad {
// self.navigationItem.title = [[appDelegate activeStory] objectForKey:@"story_title"];
[super viewDidLoad];
@ -232,6 +235,7 @@
}
- (void)loadInitialStory {
[self resetProgressBar];
[self loadAddress:nil];
titleView.text = [[[appDelegate activeStory] objectForKey:@"story_title"]