Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load two arrays into the same tableview?

Tags:

ios

iphone

ipad

I have an iPhone application in which I want to add two arrays to the same tableview, ie news array and deals array, which are returned by a web service. I need to load them in the same view, ie in a tableview, as if loading from a single array. Can anybody help me in achieving this?

like image 976
hacker Avatar asked Nov 14 '22 02:11

hacker


1 Answers

Finally I soted it out like this.First take the two arrays.then merge it in to one array,and load the table view from that array.if u need seperate actions then in your didselect methode check whether the object contains in the first array then do something,else do another thing ...

like image 70
hacker Avatar answered Nov 16 '22 02:11

hacker