Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7428155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:41:58+00:00 2026-05-29T08:41:58+00:00

Im trying to do some coding about improving the iPhone positioning accuracy. I got

  • 0

Im trying to do some coding about improving the iPhone positioning accuracy.
I got all needed info(e.g. latitude, longitude, deviceMotion, Gyro..) from my iPhone hardware and need to display the more accurate calculation result on the mapView.
But just then I found that the userLocation property of the mapView is readonly, so it probably means it cannot be changed even use the setCoordinate method, so sad =[
Is there any solution that can deal with it or there has another way to display that position on my map view?
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:42:00+00:00Added an answer on May 29, 2026 at 8:42 am

    You just need to create CLLocationCoordinate2D with CLLocationCoordinate2DMake and set there latitude a longitude.
    Then create your position as new MKAnotation (for example yourPositionAnotation) and set there your position from CLLocationCoordinate2D as a coordinate. Then do just something like this:

    // create coordinate
    CLLocationCoordinate2D yourPos = CLLocationCoordinate2DMake(lat, lon);
    // create MKAnnotation
    MKAnnotationView *yourAnnotation = [[MKAnnotationView alloc] init];
    
    yourAnnotation.coordinate = yourPos;
    
    // remove all old annotations
    [self.myMapView removeAnnotations:self.myMapView.annotations]
    // add your annotation
    [self.myMapView addAnnotation:yourAnnotation];
    

    Don’t forget release annotation in the end.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m thinking about trying some development for the iPhone, is it possible to install
I'm trying to write some code in java to learn more about coding with
im trying to implement some behaviors when a mapview element scrolls... by coding a
I'm starting to read about design patterns and trying to apply them to some
I'm trying to learn XSLT (for some holiday coding fun). I think I now
I am trying to get some data from xml file from my C# coding.
I'm trying to incorporate some design-by-contract techniques into my coding style. Postconditions look a
Coding in VB.Net Hi guys I've got this problem where I'm trying to assign
I am coding some network software and trying to minimize and stabilize the latency.
I'm trying to add some simple peer-to-peer connection functionality to an iOS library. Coding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.