在delphiXe2下面创建您的第一个iOS程式(中文)

作者:小菜 更新时间:2025-02-26 点击数:
简介:前往Delphi专题 用Delphi Xe2 开发第一个IOS程序Delphi XE2 完整版: http://www.cr173.com/soft/3328

【菜科解读】

前往Delphi专题

用Delphi Xe2 开发第一个IOS程序

Delphi XE2 完整版: http://www.cr173.com/soft/33280.html

Delphi XE2 Lite (精简版) http://www.cr173.com/soft/33387.html

原文

I have been excited for a while to build my own iOS application using Delphi XE2 and FireMonkey. First I installed RAD Studio XE2 on my Windows 7 machine and then went to the Apple Developer website to sign up for an account. Once my Apple Developer account was setup, I went ahead and installed Xcode and the iOS SDK on my Lion machine.

Also included with RAD Studio XE2 was ‘FireMonkey-iOS.dmg’ which includes two installer packages (Free Pascal compiler and FireMonkey iOS libraries) that you will need to run on your Mac. You can find the disk image in the Embarcadero RAD Studio program files subfolder, titled ‘FireMonkey-iOS’ on your Windows machine. Just copy it to your Mac and then run the installers.

After provisioning my iPhone following the steps explained on the Apple Developer site, I was excited to build my iPhone application. The project shown here didn’t take more than a couple of minutes to setup.

Using Delphi XE2, I started out with a new FireMonkey HD iOS application and added a TImage component for my FireMonkey logo and a Reflection effect which I adjusted the properties for to get desired look. Next, two Viewport 3D components were added to the form. One that contained a 3D Text component and a trackbar and one that contained a 3D Image component and a trackbar. I then dropped a couple of labels onto my form to display the angle of rotation. The form background color was changed to a nice gradient and the style changed to the FireMonkey iOS style.

This sample application with rotating 3D components, a cool reflection effect and a nice gradient was created in about 5 minutes with only three lines of code.

The 3D text component is linked to the trackbar, rotating around the y axis:

Text3D1.RotationAngle.y := TrackBar1.Value

The 3D image component is linked to the trackbar, rotating around the x axis and displaying the angle of rotation in Label2.

Image3D1.RotationAngle.x := TrackBar2.Value;//-19 to adjust for initial angle of rotation Label2.Text := IntToStr(Round(TrackBar2.Value - (-19)));

After I finished my project, I hit Run to view it on my Win 7 development machine, after making sure that my files were saved to a folder that I could easily access on my Mac.

By going to ‘Tools ->Export to Xcode’, you can export your project to Xcode. (You have to configure your Windows development machine to export Xcode project files which takes a couple of easy steps to complete. Configuration info can be found here: http://docwiki.embarcadero.com/RADStudio/en/FireMonkey_Platform_Prerequisites )

I then switched to my Mac and browsed to my shared projects folder and the Xcode subfolder. I also created a custom app icon quickly in Photoshop and swapped it out for the Delphi one that was previously found in my Xcode folder. I then opened my Xcode project in Xcode and hit run.

First I viewed my app in the simulator and then ran it on my iPhone. The included pictures and short video show you my running iOS application.

用 Google 翻译的文章

我一直兴奋了一会儿,来构建自己的IOS应用程序使用Delphi XE2和FireMonkey。

首先,我在我的Windows 7机器上安装RAD Studio的XE2,然后去苹果开发人员网站注册一个帐户。

一旦我的苹果开发人员帐户的设置,我继续我的狮子机上安装的Xcode和IOS SDK。

与RAD Studio的XE2还包括“FireMonkey - iOS.dmg其中包含两个安装程序包(Free Pascal编译器和FireMonkey iOS的图书馆),您将需要在Mac上运行。

你可以找到在Embarcadero RAD Studio程序文件的子文件夹的磁盘映像,题为“FireMonkey - IOS”您的Windows机器上。

只要将它复制到你的Mac,然后运行安装程序。

配置我的iPhone下列步骤苹果开发者网站上的解释后,我很兴奋,建立我的iPhone应用程序。

这里显示的项目没有采取更超过两分钟设置。

使用Delphi XE2中,我开始了一个新FireMonkey高清IOS的应用程序,并添加了我FireMonkey标志的TImage组件和反射效果,我调整了属性以获得所需的外观。

接下来,两个视口的3D组件被添加到窗体。

包含一个3D文字组件的TrackBar包含一个三维图像组件和一个的TrackBar。

然后我放弃我的窗体上的标签,以显示旋转的角度。

窗体的背景色更改为一个很好的梯度和改变的FireMonkey IOS风格样式。

这与旋转的3D组件,冷静的反射效果和一个不错的梯度的示例应用程序是在5分钟左右,只有三行代码。

3D文本组件被链接到的TrackBar,绕Y轴旋转: Text3D1.RotationAngle.y:= TrackBar1.Value的三维图像组件是联系在一起的TrackBar,绕X轴旋转,并显示在Label2的旋转的角度。

Image3D1.RotationAngle.x:= TrackBar2.Value; / / -19,调整旋转Label2.Text初步角度:= IntToStr(回合(TrackBar2.Value - (-19))); 当我完成我的项目,我打胜7开发机器上运行,以查看后确保我的文件被保存到一个文件夹,我可以很容易地访问我的Mac上。

通过将“工具 - >出口到Xcode”,您可以导出你的项目到Xcode。

(您必须配置您的Windows开发机器出口XCode项目文件,这需要几个简单的步骤来完成配置信息可以在这里找到:http://docwiki.embarcadero.com/RADStudio/en/FireMonkey_Platform_Prerequisites) 然后我切换到我的Mac上浏览到我的共享项目文件夹和Xcode的子文件夹。

我也创建了一个定制的应用程序图标在Photoshop中快速交换德尔福以前在我的Xcode文件夹中发现。

然后,我在Xcode中打开我的Xcode项目和命中运行。

首先,我查看我的应用程序在模拟器上,然后跑在我的iPhone。

包含的图片和录像短片,展示你我的运行iOS应用程序。

在,delphiXe2,下面,创建,您的,第一个,iOS,程

荔枝FM怎么样在直播间发送红包

荔枝FM怎样在直播间发送红包的相关操作是不是很多用户都还不太清楚,那么还不清楚的朋友现在小编就来将荔枝FM直播间红包的发送方法分享给大家,一起来具体看看吧。

荔枝FM怎样在直播间发送红包?荔枝FM直播间红包发送方法介绍1、打开首页,找到自己喜欢的主播。

2、点击红包。

3、有三种类型的红包可以发送,选择后发送即可。

以上这里为各位分享了荔枝FM直播间红包发送方法介绍。

有需要的朋友赶快来看看本篇文章吧!———想要了解更多资讯就请继续关注菜科网吧!

百度影音截图在哪 百度影音截图快捷键在哪

百度影音截图在哪大家在使用百度影音的时候肯定会用这样的疑问,随着新版的百度影音出来,有些方面的设置可能也有些变化,我们在看电影或者动画的时候肯定会看到自己喜欢的画面,这个时候截图保存下来是很有必要的,懒得找其他的截图工具,那就用用百度影音自带的截图工具吧,百度影音还可以设置快捷键来截图,就像QQ截图工具一样,那样就简单多了,大家来试试吧第一步:先打开百度影音第二步:选取自己喜欢看的电影或者视频第三步:在百度影音的左上角,点击“百度影音的下拉”,找到设置第四步:进入设置里你会看到有个截图工具,然后选择要保存的路径点击确认,这时候你使用即可第五步:大家有时候觉得很麻,这时候你使用快捷键,那么快捷键怎么设置呢?前面的基本上差不多,也在上图的这个页面,找到“热键”,你就可以对其他的键进行设置了第六步:在上图的页面你就会看到画面,选择,然后就可以多截图的快捷键进行设置了这样你就可以截图了哦,很方便吧,以后你就不用愁其他的截图工具了!软件名称:百度影音V4.0.1.65官方正式版 软件大小: 22.3M 下载地址:http://www.pc6.com/softview/SoftView_33903.html 百度,影音,截图,在哪,快捷键,百度,影音,截图,
加入收藏
               

在delphiXe2下面创建您的第一个iOS程式(中文)

点击下载文档

格式为doc格式

  • 账号登录
社交账号登录