{"id":576,"date":"2014-06-09T09:59:52","date_gmt":"2014-06-09T01:59:52","guid":{"rendered":"http:\/\/www.yusian.com\/blog\/?p=576"},"modified":"2016-07-15T15:28:46","modified_gmt":"2016-07-15T07:28:46","slug":"ios%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e4%b8%adappdelegate%e4%b8%ad%e6%9c%80%e5%9f%ba%e6%9c%ac%e6%96%b9%e6%b3%95%e7%9a%84%e7%ae%80%e5%8d%95%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/project\/2014\/06\/09\/095952576.html","title":{"rendered":"iOS\u5e94\u7528\u7a0b\u5e8f\u4e2dAppDelegate\u4e2d\u6700\u57fa\u672c\u65b9\u6cd5\u7684\u7b80\u5355\u5b9e\u73b0"},"content":{"rendered":"<pre lang=\"objc\" line=\"1\">#pragma mark \u5e94\u7528\u7a0b\u5e8f\u52a0\u8f7d\u5b8c\u6bd5\u540e\u8c03\u7528\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n    \/\/ \u521b\u5efa\u4e00\u4e2a\u7a97\u53e3\n    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];\n    \n    \/\/ \u521b\u5efa\u7a97\u53e3\u7684\u4e3b\u63a7\u5236\u5668(\u4e00\u822c\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u63a7\u5236\u5668)\n    self.window.rootViewController = [[UIViewController alloc] init];\n    \n    \/\/ \u5c06\u7a97\u53e3\u8bbe\u7f6e\u4e3a\u663e\u793a\uff0ckeyWindow\u4e3a\u4e3b\u7a97\u53e3\uff0c\u53ea\u6709\u4e3b\u7a97\u53e3\u624d\u80fd\u4e0e\u7528\u6237\u4ea4\u4e92\n    [self.window makeKeyAndVisible];\n    \n    return YES;\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#pragma mark \u5e94\u7528\u7a0b\u5e8f\u52a0\u8f7d\u5b8c\u6bd5\u540e\u8c03\u7528 &#8211; (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { \/\/ \u521b\u5efa\u4e00\u4e2a\u7a97\u53e3 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; \/\/ \u521b\u5efa\u7a97\u53e3\u7684\u4e3b\u63a7\u5236\u5668(\u4e00\u822c\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u63a7\u5236\u5668) self.window.rootViewController = [[UIViewController alloc] init]; \/\/ \u5c06\u7a97\u53e3\u8bbe\u7f6e\u4e3a\u663e\u793a\uff0ckeyWindow\u4e3a\u4e3b\u7a97\u53e3\uff0c\u53ea\u6709\u4e3b\u7a97\u53e3\u624d\u80fd\u4e0e\u7528\u6237\u4ea4\u4e92 [self.window makeKeyAndVisible]; return YES; }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[20],"class_list":["post-576","post","type-post","status-publish","format-standard","hentry","category-project","tag-basics"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=576"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/576\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}