Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @IBOutlet weak var LabelLatitude: UILabel!
- @IBOutlet weak var LabelLongitude: UILabel!
- func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
- let locValue:CLLocationCoordinate2D = manager.location!.coordinate
- let L1 = locValue.latitude
- let L2 = locValue.longitude
- LabelLatitude.text = "(L1)"
- LabelLongitude.text = "(L2)"
- override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
- let DestView: TableViewController = segue.destinationViewController as! TableViewController // this line is cause the problem it is in red
- DestView.LabelTest = LabelValueSlider
- DestView.LabelSecondLatitude = LabelLatitude.text!
- DestView.LabelSecondLongitude = LabelLongitude.text!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement