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!
![]()
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
*/
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.
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.
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.