I’m using core plot to draw a bar chart, I was wondering is there a way I can have touch events on the bars? Thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You use a delegate object to receive notification of touch events in Core Plot plots. For bar plots, implement the
-barPlot:barWasSelectedAtRecordIndex:method. The first parameter is the plot that was touched (so you can use the same delegate for more than one plot) and the second parameter is the index of the bar. Several of the example apps demonstrate usage.