title: Reading JSON data for every view
body: <p>I am very new to iOS development and am writing an app with multiple views, each view having a tableview.</p>
  
  <p>For every view, I need to read a separate JSON URL and then display the results. All the tutorials that I have been checking for this read the data in ViewController.m, but since I have a separate URL for each view, can I generalize the code and write it somewhere else?</p>
  
  <p>Also, I would like to put it in some place from where the data is loaded the most effectively, i.e. there is not much waiting period in my app when I click a button.</p>
  
  <p>I am using the below link for reference: <a href="http://www.raywenderlich.com/5492/working-with-json-in-ios-5" rel="nofollow">http://www.raywenderlich.com/5492/working-with-json-in-ios-5</a></p>
  
  <p>Thanks!</p>