{"id":4289,"date":"2016-11-01T11:16:59","date_gmt":"2016-11-01T03:16:59","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=4289"},"modified":"2016-11-01T11:18:09","modified_gmt":"2016-11-01T03:18:09","slug":"ios%e5%9c%a8%e8%8b%b9%e6%9e%9c%e6%89%8b%e6%9c%ba%e4%b8%8a%e4%bd%bf%e7%94%a8%e4%b9%9d%e5%ae%ab%e6%a0%bc%e8%be%93%e5%85%a5%e6%b3%95%e6%97%b6%e7%bc%96%e8%be%91%e6%a1%86%e8%be%93%e5%85%a5%e9%97%ae","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=4289","title":{"rendered":"[iOS]\u5728\u82f9\u679c\u624b\u673a\u4e0a\u4f7f\u7528\u4e5d\u5bab\u683c\u8f93\u5165\u6cd5\u65f6\u7f16\u8f91\u6846\u8f93\u5165\u95ee\u9898\u7684\u4e00\u4e2a\u4e34\u65f6\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p>\u9996\u5148\uff0c\u4e0a\u4e00\u4e2a Bug \u7684\u6f14\u793a\u6548\u679c\uff08<a href=\"https:\/\/quality.embarcadero.com\/browse\/RSP-16162\">QC \u94fe\u63a5<\/a>\uff09\uff1a<\/p>\n<p><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2016\/11\/iosime_err.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4290\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2016\/11\/iosime_err.gif\" alt=\"iosime_err\" width=\"318\" height=\"587\" \/><\/a><\/p>\n<p>\u76ee\u524d\u8fd9\u4e2a\u95ee\u9898\u53ea\u80fd\u7b49\u5f85\u5b98\u65b9\u53bb\u89e3\u51b3\uff0c\u4e34\u65f6\u7684\u89e3\u51b3\u529e\u6cd5\u662f\u5c06\u63a7\u4ef6\u7684 ControlType \u8bbe\u7f6e\u4e3a Platform\uff0c\u4f46 ControlType \u4e3a Platform \u7684\u7f16\u8f91\u6846\u76ee\u524d\u7684\u7248\u672c\u6709\u5404\u79cd\u5404\u6837\u7684\u9650\u5236\u548c\u95ee\u9898\uff0c\u6bd4\u5982\u4e0b\u9762\u7684\u60c5\u51b5\uff0c\u53ea\u6709\u518d\u6b21\u70b9\u51fb\u4e0b\u7f16\u8f91\u6846\u624d\u80fd\u8f93\u5165\u5185\u5bb9\u3002\u53e6\u5916\u5b83\u4e0eLayout\u4e00\u7c7b\u7684\u7ec4\u4ef6\u914d\u5408\u4e0d\u597d\uff0cTLayout.ClipChildren \u8bbe\u7f6e\u4e3a true \u65f6\uff0c\u63a7\u4ef6\u4ecd\u7136\u663e\u793a\uff0c\u6240\u4ee5\u76f4\u63a5\u8fd9\u6837\u89e3\u51b3\u663e\u7136\u79bb\u53ef\u7528\u6709\u5f88\u5927\u7684\u8ddd\u79bb\u3002\u5f53\u7136\uff0c\u5982\u679c\u4f60\u8f93\u5165\u7684\u5185\u5bb9\u53ea\u6709\u6709\u9650\u7684\u51e0\u9879\uff0c\u4e0d\u4f1a\u88ab\u8f93\u5165\u6cd5\u906e\u76d6\u800c\u4e14\u5168\u90e8\u663e\u793a\u51fa\u6765\u7684\u8bdd\uff0c\u5c31\u6ca1\u591a\u5927\u95ee\u9898\u3002<a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2016\/11\/isoedit1.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4291\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2016\/11\/isoedit1.gif\" alt=\"isoedit1\" width=\"318\" height=\"587\" \/><\/a><\/p>\n<p>\u597d\u5427\uff0c\u8fd9\u91cc\u63d0\u4f9b\u7684\u662f\u4e00\u4e2a\u4e34\u65f6\u7684\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<p>1\u3001\u628a Edit \u7684 ControlType \u4ecd\u7136\u4fdd\u7559\u4e3a Styled\uff0c\u4f46\u8bbe\u7f6e ReadOnly \u4e3a true\uff0c\u4ee5\u907f\u514d\u83b7\u5f97\u7126\u70b9\u65f6\u5f39\u51fa\u8f93\u5165\u6cd5\u3002<\/p>\n<p>2\u3001\u8bbe\u7f6e\u4e00\u4e2a\u5168\u5c40\u7684\u8ba1\u6570\u5668 FEnterCount \u4ee5\u907f\u514d\u91cd\u590d\u8fdb\u5165\u3002<\/p>\n<p>3\u3001\u5c06 Edit \u7684 OnEnter \u548c OnClick \u6307\u5411\u540c\u4e00\u4e2a\u4e8b\u4ef6\uff08\u5047\u8bbe\u4e3a DoEnterEdit)\uff0c\u5728\u8fd9\u4e2a\u4e8b\u4ef6\u4e2d\u5f39\u51fa\u4e00\u4e2a\u65b0\u7a97\u4f53\uff0c\u8fd9\u4e2a\u65b0\u7a97\u4f53\uff1a<\/p>\n<p style=\"padding-left: 30px;\">\uff081\uff09\u3001\u4e0a\u9762\u653e\u7f6e\u4e00\u4e2aEdit\uff0cControlType \u4e3a Platform\uff1b<\/p>\n<p style=\"padding-left: 30px;\">\uff082\uff09\u3001\u4e00\u4e2a\u786e\u5b9a\u548c\u53d6\u6d88\u6309\u94ae\uff1b<\/p>\n<p style=\"padding-left: 30px;\">\uff083\uff09\u4e00\u4e2aLabel \u7528\u6765\u653e\u7f6e\u8f93\u5165\u63d0\u793a\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u53ef\u4ee5\u4e0d\u7528\u3002<\/p>\n<p>4\u3001\u5728 DoEnterEdit \u4e2d\u68c0\u67e5\u8ba1\u6570\u5e76\u5f39\u51fa\u65b0\u7a97\u4f53\u6765\u5f55\u5165\u5185\u5bb9\u3002<\/p>\n<p>\u5927\u6982\u7684\u601d\u8def\u5c31\u662f\u8fd9\u4e2a\u6837\u5b50\u3002<\/p>\n<p><a href=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2016\/11\/iosimefix.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4292\" src=\"https:\/\/blog.qdac.cc\/wp-content\/uploads\/2016\/11\/iosimefix.gif\" alt=\"iosimefix\" width=\"318\" height=\"587\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\uff0c\u4e0a\u4e00\u4e2a Bug \u7684\u6f14\u793a\u6548\u679c\uff08QC  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8,602],"tags":[338,544],"class_list":["post-4289","post","type-post","status-publish","format-standard","hentry","category-delphi","category-ios","tag-338","tag-544"],"views":4731,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4289"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4289\/revisions"}],"predecessor-version":[{"id":4294,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4289\/revisions\/4294"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}