I am drawing an image as overlay for MKMapview, for this I need to know relation between MKMapRect and CGRect to draw image in a rect for visible maprect,.
I didnt find any solution.., please suggest me if any one knows,
Thanks in advance…
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.
This is some thing which will solve you problem in drawing an image as overlay for MKMapview please have a look on already asked How to display an image on a MKOverlayView try to draw the rectangle around it through this method
-(void)drawRect:(MKMapRect)rect inContext:(CGContextRef)context withLineWidth:(float)lineWidth andColor:(CGColorRef)colorGood Luck