Highlight "My location" button instead of changing its text.

This commit is contained in:
Yury Melnichek 2011-03-15 15:23:44 +01:00 committed by Alex Zolotarev
parent 99813edd51
commit 5be41e3dcb

View file

@ -21,15 +21,15 @@ typedef FrameWork<model::FeaturesFetcher, Navigator, iphone::WindowHandle> frame
{
if (m_locationController.active)
{
[m_locationController Stop];
((UIBarItem *)sender).title = @"My Position";
[m_locationController Stop];
((UIBarButtonItem *)sender).style = UIBarButtonItemStyleBordered;
m_framework->DisableMyPositionAndHeading();
}
else
{
[m_locationController Start];
m_isDirtyPosition = true;
((UIBarItem *)sender).title = @"Disable GPS";
[m_locationController Start];
((UIBarButtonItem *)sender).style = UIBarButtonItemStyleDone;
m_isDirtyPosition = true;
}
}