So the iPhone 3GS compass (magnetometer)

Discussion in 'iPhone' started by hotpace1, Jul 8, 2009.

  1. hotpace1 macrumors newbie

    Joined:
    Mar 17, 2009
    Location:
    UK
    #1
    So am I missing something? How do you use the compass within Googlemaps? I was expecting the maps to move around depending on which direction you were standing in? They seem to work exactly the same as on the 3G!
    :confused:
     
  2. samcraig macrumors P6

    Joined:
    Jun 22, 2009
    #2
    tap the location button twice.. once gets you your location 2nd does map orientation using the compass
     
  3. FSUSem1noles macrumors 68000

    FSUSem1noles

    Joined:
    Feb 23, 2006
    Location:
    Ft. Lauderdale
    #3
    I forgot which button you press, but from within the google maps app, I think it's the little radar icon, circle with crosshairs in it, tapping it twice will enable the compass and it will show you which direction you're pointing with a cone shape
     
  4. hotpace1 thread starter macrumors newbie

    Joined:
    Mar 17, 2009
    Location:
    UK
  5. sag33ar macrumors newbie

    Joined:
    Jul 7, 2009
    #5
    help me

    hello ! there.

    i am new to the objective c delelopement.

    for me objective c is like.

    but i have to learn it any how as it is part of my duty.

    so, i have a problem.

    problem is i can't set @required and @optional in my protocol file.

    i am using mingw32 from windowsxp & i am using gcc compiler.
    compiler gives erros something like following
    /*
    shape.h:2: error: stray '@' in program
    shape.h:3: error: syntax error before '-' token
    shape.h:7: error: stray '@' in program
    shape.h:8: error: syntax error before '-' token
    main.m: In function `main':
    main.m:11: warning: `rectangle' may not respond to `-displayArea'
    main.m:11: warning: (Messages without a matching method signature
    main.m:11: warning: will be assumed to return `id' and accept
    main.m:11: warning: `...' as arguments.)
    main.m:12: warning: `rectangle' may not respond to `-h'
    main.m:16:2: warning: no newline at end of file
    */

    my original protocol file is as below - shape.h
    /*
    @protocol shape
    @optional
    -(int) h;
    -(int) w;
    -(void) seth : (int) a;
    -(void) setw : (int) b;
    @required
    -(void) displayArea;
    -(void) setx : (int) a;
    -(void) sety : (int) b;
    -(int) x;
    -(int) y;
    @end
    */
     
  6. STEVESKI07 macrumors 68000

    STEVESKI07

    Joined:
    Jan 6, 2009
    Location:
    Washington, DC
    #6
    haha dude you registered and posted to the wrong forum. i have no clue how you managed to end up so far off, but I am truly impressed, not by your development skills, but your ability to make me laugh.
     
  7. slpdLoad macrumors 6502a

    slpdLoad

    Joined:
    Jun 10, 2009
    #7
    While the compass orientation is nice, I wish it would stick. For example I find my current location, tap the button again to swing around to the direction I'm facing, but as soon as I scroll the map to look down the road or whatever the view swings back to the default orientation. Pretty annoying.
     
  8. FSUSem1noles macrumors 68000

    FSUSem1noles

    Joined:
    Feb 23, 2006
    Location:
    Ft. Lauderdale
    #8
    I think I've used that compass feature once so far, and that was when I first go the phone to play around with it..
     
  9. Love Juice macrumors regular

    Joined:
    Jun 2, 2008
    #9
    i was wondering why the maps weren't rotating for me ...thanx!!!!!!
     
  10. khongaeng macrumors regular

    Joined:
    Jul 17, 2008
    Location:
    USA or ประเทศ&
    #10
    haha...I agree, that guy is totally lost. Kind of ironic that he posted on a thread talking about how to get a compass to work.
     
  11. ScootPatoot macrumors regular

    Joined:
    May 16, 2008
    #11
    Wow...I just tried doing this and I completely agree. This is very annoying.
     

Share This Page