用Perl编写iOS应用 PerlMotion

码农软件 · 软件分类 · 编译器 · 2019-12-08 20:42:38

软件介绍

PerlMotion 是一个 iOS 和 OS X 下的 Perl 开发的工具链,支持 Perl 5 . 也就是说你可以用 Perl 语言来编写 iOS 和 OS X 下的应用程序。

示例代码:

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);
}

本文地址:https://codercto.com/soft/d/20727.html

程序的法理

程序的法理

孙笑侠 / 商务印书馆 / 2005-11 / 21.00元

《程序的法理》基于法律形式化的理念而展开,着眼于程序的法理分析,力图从中国法治的本土特点出发,发掘程序法理论在中国语境下对应的实际问题,是一部学术价值较高的法学著作。一起来看看 《程序的法理》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具