Solved... finally found out what was happening, something so silly and obvious that i don't know how i missed it ... what i was doing was, in my longPress gesture action function, i was reading the coordinates from the longPress and adding them to my places dictionary as key "lat" and "lon" and the i was and then i was trying to access them as "latitude" and "longitude" . So i was assigning nil to my lat and lon constant.