{"id":558,"date":"2018-02-23T23:40:02","date_gmt":"2018-02-23T15:40:02","guid":{"rendered":"http:\/\/60.205.208.74\/2018\/02\/23\/ios-ui%e5%85%83%e7%b4%a0\/"},"modified":"2018-02-23T23:40:02","modified_gmt":"2018-02-23T15:40:02","slug":"ios-ui%e5%85%83%e7%b4%a0","status":"publish","type":"post","link":"https:\/\/www.puzi7.net\/?p=558","title":{"rendered":"iOS UI\u5143\u7d20"},"content":{"rendered":"<span itemprop=\"description\"><div class=\"article-body\">\n<div class=\"article-intro\" id=\"content\">\n<h2>\u4ec0\u4e48\u662fUI\u5143\u7d20\uff1f<\/h2>\n<p>UI\u5143\u7d20\u662f\u6211\u4eec\u5e94\u7528\u7a0b\u5e8f\u91cc\u53ef\u4ee5\u770b\u89c1\u7684\u4efb\u4f55\u53ef\u89c6\u5143\u7d20\uff0c\u5176\u4e2d\u4e00\u4e9b\u5143\u7d20\u54cd\u5e94\u7528\u6237\u7684\u64cd\u4f5c\uff0c\u5982\u6309\u94ae\u3001\u6587\u672c\u5b57\u6bb5\uff0c\u6709\u5176\u4ed6\u7684\u4e30\u5bcc\u5185\u5bb9\uff0c\u5982\u56fe\u50cf\u3001\u6807\u7b7e\u7b49\u3002<\/p>\n<p><\/p>\n<hr>\n<h2>\u5982\u4f55\u6dfb\u52a0UI\u5143\u7d20\uff1f<\/h2>\n<p>\u53ef\u4ee5\u5728\u754c\u9762\u751f\u6210\u5668\u7684\u53c2\u4e0e\u4e0b\uff0c\u5728\u4ee3\u7801\u4e2d\u6dfb\u52a0UI\u5143\u7d20\u3002\u5982\u679c\u9700\u8981\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ed6\u4eec\u5176\u4e2d\u4e4b\u4e00\u3002<\/p>\n<p><\/p>\n<hr>\n<h2>\u6211\u4eec\u5173\u6ce8\u7684<\/h2>\n<p>\u901a\u8fc7\u4ee3\u7801\uff0c\u5c06\u96c6\u4e2d\u4e8e\u6dfb\u52a0UI\u5143\u7d20\u5230\u5e94\u7528\u7a0b\u5e8f\u3002\u6bd4\u8f83\u7b80\u5355\u800c\u76f4\u63a5\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u754c\u9762\u751f\u6210\u5668\u62d6\u653eUI\u5143\u7d20\u3002\n<\/p>\n<p><\/p>\n<hr>\n<h2>\u65b9\u6cd5<\/h2>\n<p>\u4ee5\u4e0b\u6211\u4eec\u901a\u8fc7\u521b\u5efa\u4e00\u6b3e\u7b80\u5355\u7684IOS\u5e94\u7528\u7a0b\u5e8f\uff0c\u6765\u89e3\u91ca\u4e00\u4e9bUI\u5143\u7d20<\/p>\n<h4>\u6b65\u9aa4<\/h4>\n<p>1\u3001\u5728\u7b2c\u4e00\u6b3eIOS\u7a0b\u5e8f\u91cc\u4e00\u6837\uff0c\u521b\u5efa\u4e00\u4e2aViewbased\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>2\u3001\u53ea\u66f4\u65b0ViewController.h\u548cViewController.m\u6587\u4ef6<\/p>\n<p>3\u3001\u7136\u540e\u6211\u4eec\u5c06\u65b9\u6cd5\u6dfb\u52a0\u5230ViewController.m\u6587\u4ef6\u4e2d\u6765\u521b\u5efaUI\u5143\u7d20<\/p>\n<p>4\u3001\u5728viewDidLoad\u65b9\u6cd5\u4e2d\u8c03\u7528\u6b64\u65b9\u6cd5<\/p>\n<p>5\u3001\u91cd\u8981\u7684\u4ee3\u7801\u884c\u5df2\u7ecf\u5728\u4ee3\u7801\u4e2d\u901a\u8fc7\u5728\u5355\u884c\u4e0a\u65b9\u6807\u6ce8\u7684\u65b9\u5f0f\u8fdb\u884c\u4e86\u6ce8\u91ca<\/p>\n<p><\/p>\n<hr>\n<h2>\u7528\u6237\u754c\u9762\u5143\u7d20\u5217\u8868<\/h2>\n<p>\u4e0b\u9762\u89e3\u91ca\u5177\u4f53\u7684UI\u5143\u7d20\u548c\u5176\u76f8\u5173\u7684\u529f\u80fd\/p&gt;\n<\/p>\n<table class=\"reference\">\n<tbody>\n<tr>\n<th>\u5e8f\u53f7<\/th>\n<th>\u5177\u4f53\u7684UI\u5143\u7d20\u6216\u529f\u80fd<\/th>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td><a href=\"\/ios\/att-ios-ui-text-field.html\" target=\"_blank\">Text Fields-\u6587\u672c\u5b57\u6bb5<\/a><br \/>\n\u7528\u6237\u754c\u9762\u5143\u7d20\uff0c\u4f7f\u7528\u5e94\u7528\u7a0b\u5e8f\u6765\u83b7\u53d6\u7528\u6237\u8f93\u5165<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td><a href=\"\/ios\/att-ios-ui-input-types.html\" target=\"_blank\">\u8f93\u5165\u7c7b\u578b-TextFields<\/a><br \/>\n\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528UITextField\u6765\u8d4b\u4e88\u952e\u76d8\u8f93\u5165\u5c5e\u6027<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td><a href=\"\/att-ios-ui-buttons.html\" target=\"_blank\">Buttons-\u6309\u94ae<\/a> <\/p>\n<p>\u7528\u4e8e\u5904\u7406\u7528\u6237\u64cd\u4f5c<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td><a href=\"\/att-ios-ui-label.html\" target=\"_blank\">Label-\u6807\u7b7e<\/a><br \/>\n\u7528\u4e8e\u663e\u793a\u9759\u6001\u5185\u5bb9<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td><a href=\"\/att-ios-ui-toolbar.html\" target=\"_blank\">Toolbar-\u5de5\u5177\u680f<\/a><br \/>\n\u64cd\u7eb5\u5f53\u524d\u89c6\u56fe\u6240\u663e\u793a\u7684\u4e1c\u897f<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td><a href=\"\/ios\/att-ios-ui-status-bar.html\" target=\"_blank\">Status Bar-\u72b6\u6001\u680f<\/a><br \/>\n\u663e\u793a\u8bbe\u5907\u7684\u5173\u952e\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td><a href=\"\/ios\/att-ios-ui-navigation-bar.html\" target=\"_blank\">Navigation Bar-\u5bfc\u822a\u680f<\/a><br \/>\n\u5305\u542b\u4e00\u4e2a\u53ef\u4ee5\u63a8\u65ad\u7684\u89c6\u56fe\u63a7\u5236\u5668\uff0c\u5e76\u5f39\u51fa\u5bfc\u822a\u63a7\u5236\u5668\u7684\u5bfc\u822a\u6309\u94ae<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td><a href=\"\/ios\/att-ios-ui-tab-bar.html\" target=\"_blank\">Tab bar-\u9009\u9879\u5361\u680f<\/a><br \/>\n\u4e00\u822c\u7528\u4e8e\u5404\u4e2a\u5b50\u4efb\u52a1\u3001\u89c6\u56fe\u6216\u540c\u4e00\u89c6\u56fe\u4e2d\u7684\u6a21\u578b\u4e4b\u95f4\u7684\u5207\u6362.<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td><a href=\"\/ios\/att-ios-ui-imageview.html\" target=\"_blank\">Image View-\u56fe\u50cf\u89c6\u56fe<\/a><br \/>\n\u7528\u4e8e\u663e\u793a\u4e00\u4e2a\u7b80\u5355\u7684\u56fe\u50cf\u5e8f\u5217<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td><a href=\"\/ios\/att-ios-ui-scrollview.html\" target=\"_blank\">Scroll View-\u6eda\u52a8\u89c6\u56fe<\/a><br \/>\n\u7528\u6765\u663e\u793a\u66f4\u591a\u5c4f\u5e55\u533a\u57df\u7684\u5185\u5bb9<\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td><a href=\"\/ios\/att-ios-ui-tableview.html\" target=\"_blank\">Table View-\u5217\u8868\u89c6\u56fe<\/a><br \/>\n\u7528\u4e8e\u5728\u591a\u4e2a\u884c\u6216\u90e8\u5206\u4e2d\u663e\u793a\u53ef\u6eda\u52a8\u5217\u8868\u7684\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>12<\/td>\n<td><a href=\"\/ios\/att-ios-ui-splitview.html\" target=\"_blank\"> IOS\u5206\u5272\u89c6\u56fe(Split View)\t<\/a><br \/>\n\u7528\u4e8e\u5728\u8be6\u7ec6\u4fe1\u606f\u7a97\u683c\u4e0a\u663e\u793a\u4e24\u4e2a\u7a97\u683c\u4e0e\u4e3b\u7a97\u683c\u7684\u63a7\u5236\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td>13<\/td>\n<td><a href=\"\/ios\/att-ios-ui-textview.html\" target=\"_blank\">Text View-\u6587\u672c\u89c6\u56fe<\/a><br \/>\n\u7528\u4e8e\u663e\u793a\u6eda\u52a8\u5217\u8868\u7684\u6587\u672c\u4fe1\u606f\u53ef\u4ee5\u88ab\u9009\u4e2d\u548c\u7f16\u8f91<\/td>\n<\/tr>\n<tr>\n<td>14<\/td>\n<td><a href=\"\/ios\/att-ios-ui-view-transition.html\" target=\"_blank\">View Transition\u00a0-\u89c6\u56fe\u5207\u6362<\/a><br \/>\n\u5404\u79cd\u89c6\u56fe\u67e5\u770b\u4e4b\u95f4\u7684\u5207\u6362<\/td>\n<\/tr>\n<tr>\n<td>15<\/td>\n<td><a href=\"\/ios\/att-ios-ui-picker.html\" target=\"_blank\">Pickers-\u9009\u62e9\u5668<\/a><br \/>\n\u7528\u6765\u663e\u793a\u4ece\u5217\u8868\u4e2d\u9009\u62e9\u4e00\u4e2a\u7279\u5b9a\u7684\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>16<\/td>\n<td><a href=\"\/ios\/att-ios-ui-switches.html\" target=\"_blank\">Switches-\u5f00\u5173<\/a><br \/>\n\u7528\u4f5c\u7981\u7528\u548c\u542f\u7528\u64cd\u4f5c<\/td>\n<\/tr>\n<tr>\n<td>17<\/td>\n<td><a target=\"_top\" href=\"http:\/\/www.w3cschool.cc\/ios\/att-ios-ui-sliders.html\"><br \/>\n\tIOS\u6ed1\u5757(Sliders)\t<\/a><br \/>\n\u7528\u6765\u5141\u8bb8\u7528\u6237\u5728\u5141\u8bb8\u7684\u503c\u8303\u56f4\u5185\u9009\u5bf9\u4e00\u4e2a\u503c<\/td>\n<\/tr>\n<tr>\n<td>18<\/td>\n<td><a target=\"_top\" href=\"http:\/\/www.w3cschool.cc\/ios\/att-ios-ui-alerts.html\"><br \/>\n\tIOS\u8b66\u544a\u5bf9\u8bdd\u6846(Alerts)\t<\/a><br \/>\n\u7528\u6765\u7ed9\u7528\u6237\u63d0\u4f9b\u91cd\u8981\u7684\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td>19<\/td>\n<td><a target=\"_top\" href=\"http:\/\/www.w3cschool.cc\/ios\/att-ios-ui-icons.html\"><br \/>\n\tIOS\u56fe\u6807(Icons)\t<\/a><br \/>\n\u5b83\u662f\u56fe\u50cf\uff0c\u8868\u793a\u7528\u4e8e\u884c\u52a8\u6216\u63cf\u7ed8\u4e0e\u5e94\u7528\u7a0b\u5e8f\u76f8\u5173\u7684\u4e1c\u897f<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<\/p><\/div>\n<span>","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\"><span itemprop=\"description\">\u4ec0\u4e48\u662fUI\u5143\u7d20\uff1f UI\u5143\u7d20\u662f\u6211\u4eec\u5e94\u7528\u7a0b\u5e8f\u91cc\u53ef\u4ee5\u770b\u89c1\u7684\u4efb\u4f55\u53ef\u89c6\u5143\u7d20\uff0c\u5176\u4e2d\u4e00\u4e9b\u5143\u7d20\u54cd\u5e94\u7528\u6237\u7684\u64cd&hellip;<\/span><\/p>\n<p class=\"more-link-p btn-align-right\"><a class=\"green zoom-btn\" href=\"https:\/\/www.puzi7.net\/?p=558\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,26],"tags":[74,93],"class_list":["post-558","post","type-post","status-publish","format-standard","hentry","category-ios","category-mobile","tag-ios","tag-mobile","zoom-theme-has-thumb"],"_links":{"self":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts\/558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=558"}],"version-history":[{"count":0,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts\/558\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}