mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing bug with showing progress bar on ios.
This commit is contained in:
parent
5055da04e3
commit
721adf5d19
2 changed files with 9 additions and 4 deletions
|
@ -34,6 +34,7 @@ UIGestureRecognizerDelegate, NJKWebViewProgressDelegate> {
|
||||||
//@property (strong, nonatomic) SloppySwiper *swiper;
|
//@property (strong, nonatomic) SloppySwiper *swiper;
|
||||||
@property (nonatomic) NJKWebViewProgressView *progressView;
|
@property (nonatomic) NJKWebViewProgressView *progressView;
|
||||||
|
|
||||||
|
- (void)resetProgressBar;
|
||||||
- (void)loadInitialStory;
|
- (void)loadInitialStory;
|
||||||
- (IBAction) doOpenActionSheet:(id)sender;
|
- (IBAction) doOpenActionSheet:(id)sender;
|
||||||
- (IBAction)loadAddress:(id)sender;
|
- (IBAction)loadAddress:(id)sender;
|
||||||
|
|
|
@ -42,9 +42,6 @@
|
||||||
[super viewDidAppear:animated];
|
[super viewDidAppear:animated];
|
||||||
|
|
||||||
[self.navigationController.navigationBar addSubview:progressView];
|
[self.navigationController.navigationBar addSubview:progressView];
|
||||||
progressView.progressBarView.alpha = 0.0f;
|
|
||||||
[progressView setProgress:0 animated:NO];
|
|
||||||
[progressView setProgress:NJKInitialProgressValue animated:YES];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)viewWillDisappear:(BOOL)animated {
|
- (void)viewWillDisappear:(BOOL)animated {
|
||||||
|
@ -72,6 +69,12 @@
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)resetProgressBar {
|
||||||
|
progressView.progressBarView.alpha = 0.0f;
|
||||||
|
[progressView setProgress:0 animated:NO];
|
||||||
|
[progressView setProgress:NJKInitialProgressValue animated:YES];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)viewDidLoad {
|
- (void)viewDidLoad {
|
||||||
// self.navigationItem.title = [[appDelegate activeStory] objectForKey:@"story_title"];
|
// self.navigationItem.title = [[appDelegate activeStory] objectForKey:@"story_title"];
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
|
@ -232,6 +235,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)loadInitialStory {
|
- (void)loadInitialStory {
|
||||||
|
[self resetProgressBar];
|
||||||
[self loadAddress:nil];
|
[self loadAddress:nil];
|
||||||
|
|
||||||
titleView.text = [[[appDelegate activeStory] objectForKey:@"story_title"]
|
titleView.text = [[[appDelegate activeStory] objectForKey:@"story_title"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue