MKMapView の showsPointsOfInterest プロパティはどこだー?

ということで、覚書

pointOfInterestFilter に変わっているとな?

やりたいことは、地図の注釈を消す表示するなんで、サクッと以下のコード

_InterestFlag=!_InterestFlag;
MKPointOfInterestFilter *Filter;
NSMutableArray *Interest=[NSMutableArray array];
if(_InterestFlag)
{
Filter=[[MKPointOfInterestFilter alloc] initExcludingCategories:Interest] ;
}
else
{
Filter=[[MKPointOfInterestFilter alloc] initIncludingCategories:Interest] ;
}
_MapView.pointOfInterestFilter=Filter;

 

NSMutableArrayにしてるのは、今後に消す要素、表示する要素を分けようと思ってるのだ。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA