你的位置:首页 > 操作系统

[操作系统]【代码笔记】中国地图


一,效果图。

二,工程图。

三,代码。

AppDelegate.m

复制代码
#import "AppDelegate.h"//加入头文件#import "DrawMapViewController.h"@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{  self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];  // Override point for customization after application launch.    DrawMapViewController *viewController = [[DrawMapViewController alloc] init];  UINavigationController *rootNavController = [[UINavigationController alloc] initWithRootViewController:viewController];  [self.window addSubview:[rootNavController view]];  [self.window makeKeyAndVisible];  return YES;}
复制代码