Hi all,
Over the past couple of months I've put together my first iOS app and on the whole it's going well. I'll be the first to admit that biggest my downfall is not fully understanding the underlying objective C foundation, and I find Apple's documentation on the subject quite hard going.
My app in similar to the Contacts app; it reads a SQL database to generate a tableview, where each row drills down to an "details" page which displays data and a map thumbnail taken from the database. The map thumbnail is a small mapview generated with hardcoded location co-ordinates from the database. When the user taps the thumbnail a larger map with interaction enabled is displayed.
The problem is that no matter how I try I cannot pass the co-ordinate data used to generated the thumbnail on to the main mapview. I've tried to reference the co-ordinates of the detailview class from within the mapview class and tried defining the new co-ordinates of the mapview class from within the detailview class. Methods which have worked before...
Anyone know of any good tutorials on how to share variables between views/classes? Any help would be greatly appreciated.
Thanks in advance.
Over the past couple of months I've put together my first iOS app and on the whole it's going well. I'll be the first to admit that biggest my downfall is not fully understanding the underlying objective C foundation, and I find Apple's documentation on the subject quite hard going.
My app in similar to the Contacts app; it reads a SQL database to generate a tableview, where each row drills down to an "details" page which displays data and a map thumbnail taken from the database. The map thumbnail is a small mapview generated with hardcoded location co-ordinates from the database. When the user taps the thumbnail a larger map with interaction enabled is displayed.
The problem is that no matter how I try I cannot pass the co-ordinate data used to generated the thumbnail on to the main mapview. I've tried to reference the co-ordinates of the detailview class from within the mapview class and tried defining the new co-ordinates of the mapview class from within the detailview class. Methods which have worked before...
Anyone know of any good tutorials on how to share variables between views/classes? Any help would be greatly appreciated.
Thanks in advance.