<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          PerlMotion用Perl編寫iOS應(yīng)用

          聯(lián)合創(chuàng)作 · 2023-10-02 01:31

          PerlMotion 是一個(gè) iOS 和 OS X 下的 Perl 開發(fā)的工具鏈,支持 Perl 5 . 也就是說你可以用 Perl 語言來編寫 iOS 和 OS X 下的應(yīng)用程序。

          示例代碼:

          package Hello::AppDelegate;
          use base 'UIApplicationDelegate';
          use UIAlertView;
          use UIWindow;
          use UIScreen;
          use Hello::ViewController;
          
          # this method is entrypoint of your application
          sub application {
              my ($app) = @_;
              my $alert = UIAlertView->new->init_with_title('Hello', {
                  message => 'Hello PerlMotion!!'
              });
              $alert->add_button_with_title("Button");
              my $title = $alert->button_title_at_index(0);
              $alert->dismiss_with_clicked_button_index(0, { animated => 1 });
              $alert->show();
              my $window = UIWindow->new()->init_with_frame(UIScreen->main_screen->bounds);
              $window->root_view_controller(Hello::ViewController->new);
              $window->root_view_controller->wants_full_screen_layout(1);
              $window->make_key_and_visible;
              $app->window($window);
          }
          瀏覽 22
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  欧美乱妇狂野欧美在线视频 | 男女动态拍拍片 | 北条麻妃中文字幕在线 | 欧美操逼大全 | 一级特黄A大片 |