ios - Get Points in CorePlot as I drag -


i using core plot:

import uikit class viewcontroller: uiviewcontroller {  @iboutlet weak var display: uilabel!  @ibaction func pan(sender: uipangesturerecognizer) {  var coordinate = sender.locationinview(uiview?()) display.text = "\(coordinate)" }} 

this gets coordinates of point of screen pan around. possible in core plot graph? (using plotareatouchdown methods if possible)

get coordinate in hosting view (sender.locationinview(hostingview)). convert plot area layer coordinate system using calayer coordinate conversion methods , use plot space convert data coordinates.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -