{"id":3905,"date":"2016-05-12T14:53:03","date_gmt":"2016-05-12T06:53:03","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=3905"},"modified":"2016-05-12T14:53:03","modified_gmt":"2016-05-12T06:53:03","slug":"ios%e5%bc%80%e5%8f%91%e8%8e%b7%e5%8f%96-object-c-%e7%b1%bb%e7%9a%84%e6%8e%a5%e5%8f%a3%e7%9a%84%e5%87%bd%e6%95%b0%e5%90%8d%e5%88%97%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=3905","title":{"rendered":"[iOS\u5f00\u53d1]\u83b7\u53d6 Object-C \u7c7b\u7684\u63a5\u53e3\u7684\u51fd\u6570\u540d\u5217\u8868"},"content":{"rendered":"<pre class=\"lang:delphi decode:true \">procedure TForm1.Button7Click(Sender: TObject);\r\nvar\r\n  ACls: Pointer;\r\n  AList: PPointer;\r\n  I, ACount: Integer;\r\n  S, AName: String;\r\n  AMethod: TIOSAppBeginBackgroundTask;\r\nbegin\r\n  ACls := objc_getClass(MarshaledAString('UIApplication'));\r\n  if Assigned(ACls) then\r\n  begin\r\n    AList := class_copyMethodList(ACls, ACount);\r\n    if ACount &gt; 0 then\r\n    begin\r\n      S := '';\r\n      for I := 0 to ACount - 1 do\r\n      begin\r\n        S := S + sel_getName(method_getName(AList^)) + SLineBreak;\r\n        Inc(AList);\r\n      end;\r\n      Memo1.Text := S;     \r\n    end;\r\n    __free(AList);\r\n  end;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>procedure TForm1.But [&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":[],"class_list":["post-3905","post","type-post","status-publish","format-standard","hentry","category-delphi","category-ios"],"views":5560,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3905","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=3905"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3905\/revisions"}],"predecessor-version":[{"id":3906,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3905\/revisions\/3906"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}