-4

Possible Duplicate:
Passing Data between View Controllers

I have two views : 1) Mapview 2) DetailView

I want to pass the coordinates from the map view to the detail view. coordinates.latitude and coordinates.longtitude

How do i go about passing the coordinates.

Community
  • 1
  • 1
user1007332
  • 31
  • 1
  • 3

1 Answers1

0

There are a number of ways you could do this. One of which is with a property. So you would have the property declaration in the map view and then be able to access it via someMapView.propertyName.

Hope that helps.

mdominick
  • 1,319
  • 1
  • 10
  • 21
  • How do i go about doing that? I am not very sure Thank you for ur help – user1007332 Dec 07 '11 at 10:34
  • In you header: @property(nonatomic, retain) SomeType *someVariable That's how you declare a property in the header. Be sure you use @synthesize in the implementation file and release it in the dealloc; I am assuming you are not using ARC. – mdominick Dec 07 '11 at 11:39