ios - loadDataSource issue when changing ViewControllers -


My root view is a PSCollectionView (). In this class I have the method loadDataSource that loads data from my web service.

  - (zero) loadDataSource {NSLog (@ "Load Data Source"); NSMutableArray * Main Listings = [Utils getPosts: selectedCategory Start: @ "0" Date: @ "0"]; Self.waterflowViewData = Main listing; [Self. Waterflow Pulatorefreevase stop animating]; // This happens when I pull it to refresh to call. }   

This method is similar to rootView in viewDidLoad

  [in self loadDataSource] goes ];   

and in the pullToRefresh method like this

  __compatible ViewController * weakSelf = self; [Weak self-loading data source];   

My problem occurs when I use ViewController by self.navigationController this method loadDataSource being called . It is only being called in two places I have searched. Even when I return from the fourth ViewController to the third ViewController from 'loadDataSource' (I check with NSLog). Why is it happening because it makes the app slow and uses web service resources

is that I have all my ViewControllers

 < Code> - (zero) addButtonClickEvent: (ID) sender {log in view view controller * login view = [[log inview controller alloc] init]; [Self. Navigation Push ViewController: Animated Login: Yes]; }   

Put a breakpoint in your function (click on the line number) which is very much said Goes bar and then runs the app. This will give you a good stack trace, whose functions are calling:

Xcode Stack Trace

The function at the top is the one where your breakpoint is, and the trace down takes you to your breakpoint every single function call.

Grade-Out functions are internal functions, while those with dark text may possibly work in your application. Click them and the encoded will show you the code that is calling the next function.

To continue the debugging, click on the output window (console) and enter (or type C -> enter) to access the next breakpoint.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -