views:

112

answers:

0

i have a MKOverlayView with custom drawings. i have to rotate those view to different degrees. i used transform property for rotating the view. its working in the ios 4.0 but its not working in the ios 4.1. What is the reason? how can i rotate the Overlay view?

here is the code... - (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id )overlay {
circleOverlay = [[OverlayView alloc] initWithOverlay:overlay]; circleOverlay.backgroundColor = [UIColor clearColor]; [circleOverlay setTransform:CGAffineTransformMakeRotation(260*M_PI/180)]; return circleOverlay; }