objective c - How to link data between two UITableViews? -


i got trouble , need help, here is: on project, built taxi system , each taxi service shown pin in mapview. each pin has annotation show name , number of services. data parsed json. on annotationview, have right call out button view information of every single service. means annotationview, put button , moves view. how can that? code bellow shows how data json, in right call out button, how taxi service info shown in next view? example, annotation view shows abc taxi service, , in callout button, shows information of service. information parsed json.

for (nsmutablearray *stationdictionary in stationdata) {     station.name = [stationdictionary objectatindex:10];     station.number = [stationdictionary objectatindex:11];     station.info = [stationdictionary objectatindex:12]; } 

i hope point , appreciate helps. thanks.

if wrap information wish display in class, can pass objects around (or arrays of multiple objects) view view. instance, in medical app i've written, when go list of surgical cases detail particular surgical case, have list of cases in first view (which controls info displayed there). when user taps on particular case view details, load next view (which contains more detail particular case) , pass selected case new view.

so, need lay out data structure makes sense of have (taxis, services, phone numbers, etc...). then, parse json list of objects. after that, it's straightforward matter of deciding info display on views @ time.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -