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 (nonatomic) NJKWebViewProgressView *progressView;
|
||||
|
||||
- (void)resetProgressBar;
|
||||
- (void)loadInitialStory;
|
||||
- (IBAction) doOpenActionSheet:(id)sender;
|
||||
- (IBAction)loadAddress:(id)sender;
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Add table
Reference in a new issue