Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. @IBOutlet weak var LabelLatitude: UILabel!
  2. @IBOutlet weak var LabelLongitude: UILabel!
  3.  
  4. func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
  5. let locValue:CLLocationCoordinate2D = manager.location!.coordinate
  6. let L1 = locValue.latitude
  7. let L2 = locValue.longitude
  8.  
  9. LabelLatitude.text = "(L1)"
  10. LabelLongitude.text = "(L2)"
  11.  
  12.  
  13. override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
  14. let DestView: TableViewController = segue.destinationViewController as! TableViewController // this line is cause the problem it is in red
  15. DestView.LabelTest = LabelValueSlider
  16. DestView.LabelSecondLatitude = LabelLatitude.text!
  17. DestView.LabelSecondLongitude = LabelLongitude.text!
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement