File tree Expand file tree Collapse file tree
EasyReader/Application/Controllers/Home Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919@interface CSHomeViewController (){
2020 CSFeedItemCollectionViewDataSource *feedCollectionViewDataSource;
2121 FeedItem *currentFeedItem;
22+ NSString *currentURL;
2223}
2324
2425// / The collection view which holds the individual feed items
@@ -183,12 +184,12 @@ - (void)scrollToCurrentFeedItem
183184-(void )loadFeedItemWebView
184185{
185186 // Check if this is a new url
186- if (currentFeedItem != self.collectionView_feedItems .currentFeedItem ){
187+ if (currentURL != self.collectionView_feedItems .currentFeedItem . url ){
187188 // update the current url
188- currentFeedItem = self.collectionView_feedItems .currentFeedItem ;
189+ currentURL = self.collectionView_feedItems .currentFeedItem . url ;
189190
190191 // load the url in the webView
191- NSURL *url = [NSURL URLWithString: self .collectionView_feedItems.currentFeedItem.url ];
192+ NSURL *url = [NSURL URLWithString: currentURL ];
192193 NSURLRequest *requestObj = [NSURLRequest requestWithURL: url];
193194 [self .feedItemWebView loadRequest: requestObj];
194195 }
You can’t perform that action at this time.
0 commit comments