开发者

mapkit map doesn't reload

开发者 https://www.devze.com 2023-03-13 23:32 出处:网络
hi guys hope this is a simple question. I have a navigationController with mapkit. How do i reload the pinpoints/data when I pressed back and select another option?

hi guys hope this is a simple question.

I have a navigationController with mapkit. How do i reload the pinpoints/data when I pressed back and select another option?

This is the scenario: I have a main page of table of patients objects. When i press on an unique row, it is suppose to be to populate points on the next page (mapkit). However, when i pressed back and select another patient object, it will always return the same mapkit view which patient object i have first selected.... really puzzling... the mapkit doesnt reload at all..

Hope someone can help or guide me=) Please开发者_运维百科 help guys... viewDidLoad method only load once.. and viewWillAppear method create layers.... =(


Try...

[mapView setCenterCoordinate:mapView.region.center animated:NO];
0

精彩评论

暂无评论...
验证码 换一张
取 消