廢話不多說纽哥,直接上代碼栖秕,,annotationView.imageView.transform = CGAffineTransformIdentity;
annotationView.centerOffset = CGPointMake(0, -18);
annotationView.imageView.transform = CGAffineTransformMakeRotation(270*M_PI/180.f);
原因:setImage時(shí)內(nèi)部會(huì)重新根據(jù)圖片大小設(shè)置imageView的frame, 而此時(shí)如果transform不是CGAffineTransformIdentity只壳,會(huì)有問題