スキップしてメイン コンテンツに移動

MKMap


Display a specific place in iOS Map
Its very simple to display a place (pin) in iOS Map. All you need is to follow 3 simple steps
1. Create an instance of MKPlaceMark with the coordinates and address dictionary
MKPlacemark *placeMark = [[MKPlacemark alloc]initWithCoordinate:coordinate addressDictionary:addressDict];
2. Create an instance of MKMapItem with the PlaceMark
MKMapItem *mapItem = [[MKMapItem alloc] initWithPlacemark:placeMark];
3. Launch the iOS map using its instance method ‘openInMapsWithLaunchOptions:‘ and thats it..
[mapItem openInMapsWithLaunchOptions:nil];

コメント

このブログの人気の投稿

日本に来た 今三週間

四月六日に日本に来た、今三週間になった。 嬉しくなかった、悲しくなかった。 日本の携帯電話のカメラはとてもいいよ、私は今撮影が好きだ、いつも寮に帰る途中で花とか魚とか写真を撮る。これも生活の趣味だ。 滴は綺麗だ 桜が凋んで落ちる 天気がいいとき、自転車に乗って、食材を買った。 自分で料理をつくる、おいしそうでしょう。 昨日清水寺に行った、天気はとても熱いね。日に焼けすぎたので、腕は今赤い。 側に花があるので、赤い清水寺はもっと美しそうだ。 木の色は艶やかだ。