我想知道是否有人能告诉我如何在地图注释中添加正确的标注附件.我尝试的一切似乎都没有到达任何地方,所以任何帮助将不胜感激.
编辑
我已经尝试过这行代码,但注释没有任何不同.
- (MKAnnotationView *)mapview:(MKMapView *)sender viewForAnnotation:(id <MKAnnotation>)annotation
{
MKAnnotationView *aView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@""];
aView.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
aView.canShowCallout = YES;
aView.annotation = annotation;
return aView;
}
Run Code Online (Sandbox Code Playgroud) 我在这行代码中收到一条错误,指出"预期的标识符"
UINavigationController *navController1 = [[[UINavigationController alloc] initWithRootViewController:viewController4]];
Run Code Online (Sandbox Code Playgroud)
此代码放在应用程序Delegate中,如下所示
#import "AppDelegate.h"
#import "FirstViewController.h"
#import "SecondViewController.h"
#import "ParkTable.h"
#import "TableTest.h"
@implementation AppDelegate
@synthesize window = _window;
@synthesize tabBarController = _tabBarController;
@synthesize ParkTableDel = _tableViewController;
@synthesize navController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
UIViewController *viewController1 = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil];
UIViewController *viewController2 = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
UITableViewController *viewController3 = [[ParkTable alloc] initWithNibName:@"ParkTable" bundle:nil];
UITableViewController *viewController4 = [[TableTest …Run Code Online (Sandbox Code Playgroud) 当应用程序正在进行应用程序商店批准过程时,Apple的人员会检查项目中的警告,还是仅检查错误?
例如,我在很多NIB文件上都有这个警告:
不支持的配置:标题集但使用系统标识符(这些属性是互斥的;标题将被忽略)
这会是Apple拒绝我的app应用程序的原因吗?
嗨我有一个使用地图和位置的iPhone应用程序.
我希望用户能够按下一个按钮,该按钮可以转向该位置.我知道我不允许在应用程序中执行此操作,但我想知道是否有人可以告诉我是否可以链接到本地谷歌地图应用程序,该应用程序将从用户当前位置输入到该位置的路线.
如果有可能你还可以告诉我怎么样?
任何帮助,将不胜感激.
谢谢
ios ×3
xcode ×3
iphone ×2
mapkit ×2
annotations ×1
google-maps ×1
map ×1
objective-c ×1
uitableview ×1