2016-03-09 32 views
0

我已經嘗試過很多方法,但我無法從Something陣列獲取數據,並顯示在基於indexPathUITableViewsomething就像下面響應發行對象爲泰伯維

{ 
    "results": [ 
    { 
     "Something": [ 
     [ 
      { 
      "airV": "LX", 
      "class": "Y" 
      } 
     ] 
     ], 

    }, 
    { 
     "Something": [ 
     [ 
      { 
      "airV": "FZ", 
      "class": "Y" 
      } 
     ], 
     [ 
      { 
      "airV": "FZ", 
      "class": "Y" 
      } 
     ] 
     ], 

    }, 

    ], 

} 

注:一些數組[] - >>>含有多種陣列中it.Looping的something陣列我想"airV": "LX","class": "Y" airv,全班學生分成TableView

+1

更新你的問題與你試圖解釋你有什麼問題。 – rmaddy

+0

我可以從單個數組[數據]獲取數據,但我想循環多個[something]]數組,並顯示數據在tableview中與arv,基於索引的類 –

回答

0

你可以存儲(某物)的NSArray,並基於NSIndexPath迭代該數組。

NSArray * arrayofSomething /* Your Array */ 
Inside your cellForRowAtIndexPath you can get the objects from arrayofSomething based on index. 

Obj *obj = [arrayofSomething objectAtIndex:indexPath.row];