測試MYAPP我用xcode4開發基地地圖應用程序, 我設定的區域使用MKCoordinateRegionMakeWithDistance
像如下:得到一個錯誤味精當iPod上
self->map.hidden=NO; CLLocationCoordinate2D loc = CLLocationCoordinate2DMake([[NSNumber numberWithFloat:34.923964] doubleValue],[[NSNumber numberWithFloat:-120.219558] doubleValue]);
NSLog(@"%f",[[NSNumber numberWithFloat:34.923964] doubleValue]);
MKCoordinateRegion reg = MKCoordinateRegionMakeWithDistance(loc,[[NSNumber numberWithFloat:1000] doubleValue],[[NSNumber numberWithFloat:1000] doubleValue]);
self->map.region = reg;
當我試圖運行tes的東西,我寫T,我得到這個消息:
Undefined symbols for architecture armv7: "_CLLocationCoordinate2DMake", referenced from: -[MapViewController viewDidAppear:] in MapViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
是什麼消息呢?
你是對的,我忘了添加CoreLocation框架 – timger 2012-02-17 03:51:49
人們忘記了事情,這不是愚蠢的。 – jturolla 2013-06-18 21:46:41