Saving mapView.userLocation.location.coordinate.longitude into sqlite database
问题 I want to insert the value returning from mapView.userLocation.location.coordinate.longitude into my sqlite3 database. I am not sure of its type. I cannot do it this way: sqlite3_bind_text(stmt, 1, [mapView.userLocation.location.coordinate.longitude floatValue], -1, nil); It gives "Cannot convert to a pointer type" error because longitude is not float, I guess. The type of field is FLOAT in the database table. How can I convert the value of longitude to float from whatever it is? Thanks a lot