{"id":361,"date":"2013-10-09T14:30:01","date_gmt":"2013-10-09T06:30:01","guid":{"rendered":"http:\/\/www.withonly.com\/?p=361"},"modified":"2013-10-09T14:30:01","modified_gmt":"2013-10-09T06:30:01","slug":"ios-7-%e5%af%bc%e8%88%aa%e6%a0%8f%e9%81%ae%e6%8c%a1%e8%a7%86%e5%9b%be%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=361","title":{"rendered":"ios 7 \u5bfc\u822a\u680f\u906e\u6321\u89c6\u56fe\u7684\u95ee\u9898"},"content":{"rendered":"<p>\u5728\u53d1\u5e03\u4e86\u65b0\u7684 ios 7 \u7cfb\u7edf\u540e\uff0c\u53d1\u73b0\u5bfc\u822a\u680f\u4f1a\u5360\u636e\u89c6\u56fe\u7684\u4f4d\u7f6e\uff0c\u5982\u679c\u5e94\u7528\u662f\u57286 \u548c7 \u4e0a\u90fd\u6709\u7528\u6237\u7684\u8bdd\uff0c\u90a3\u4e48\u5c31\u9700\u8981\u505a\u517c\u5bb9\u9002\u914d\u3002<\/p>\n<p>\u7f51\u4e0a\u6709\u770b\u52302\u79cd\u65b9\u6cd5\u3002\u4e00\u79cd\u662f\u8bbe\u7f6e UINavigationBar\u7684translucent\u5c5e\u6027\uff0cself.navigationController.navigationBar.translucent = NO;<\/p>\n<p>\u53e6\u5916\u7684\u4e00\u4e2a\u65b9\u6cd5\u662f\u8bbe\u7f6e\u8fb9\u6cbf\u5ef6\u4f38\u7684\u5c5e\u6027\uff0c\u4f46\u662f\u9700\u8981\u5148\u83b7\u53d6\u5224\u65ad\u7cfb\u7edf\u7684\u7248\u672c\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>if ([[[UIDevice currentDevice] systemVersion] doubleValue] &gt;= 7.0) {<\/p>\n<p>self.edgesForExtendedLayout = UIRectEdgeNone;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>\u5728\u67e5\u770b\u6587\u6863\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u6709\u6bb5\u6587\u5b57\u63d0\u53caUINavigtaionBar\u7684\u9ad8\u5ea6\u4f1a\u81ea\u52a8\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u53d8\u5316\u4e3a 44 \u6216\u800564\uff0c\u6ca1\u6709\u786e\u5b9a\u7684\u9884\u6d4b\u65b9\u6cd5\uff0c\u5982\u679c\u5bf9 UINavigationBar \u6709\u8bbe\u7f6e\u80cc\u666f\u56fe\u7247\u7684\u8bdd\uff0c\u6309\u7167\u522b\u4eba\u7684\u7ecf\u9a8c\uff0c\u6700\u597d\u662f\u7528\u4e00\u4e2a64\u9ad8\u5ea6\u7684\u56fe\u7247\uff0c\u4e0a\u9762\u768420\u50cf\u7d20\u8bbe\u7f6e\u4e3a\u900f\u660e\u7684\u3002\u66f4\u5177\u4f53\u7684\u5185\u5bb9\u53ef\u4ee5\u67e5<a href=\"http:\/\/blog.sina.com.cn\/s\/blog_a8192bdd0101af40.html\" target=\"_blank\">\u770b\u8fd9\u91cc<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u53d1\u5e03\u4e86\u65b0\u7684 ios 7 \u7cfb\u7edf\u540e\uff0c\u53d1\u73b0\u5bfc\u822a\u680f\u4f1a\u5360\u636e\u89c6\u56fe\u7684\u4f4d\u7f6e\uff0c\u5982\u679c\u5e94\u7528\u662f\u57286 \u548c7 \u4e0a\u90fd\u6709\u7528\u6237\u7684\u8bdd\uff0c\u90a3\u4e48\u5c31\u9700\u8981 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,5],"tags":[253,148],"class_list":["post-361","post","type-post","status-publish","format-standard","hentry","category-ios","category-daily","tag-ios","tag-148"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=361"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/361\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}