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

【菜科解读】
用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,程
在四川成都社保补缴如何办理?
在四川成都社保补缴怎么办理?随新社通小编一起看看:补缴材料:1、《四川成都社会保险费补缴申请表》2、属原固定工及合同制职工的,提供职工本人的档案、录用(招工)审批表、历年《四川成都职工劳动手册》3、属其他用工形式的,提供合同书、录用(招工)审批表(或招工表)、历年《四川成都职工劳动手册》(外地户口职工可不提供)4、未办理招用工手续,但存在事实劳动关系的,提供存在事实劳动关系的有效证明材料(如原始工资发放表、考勤表等)补缴流程:1、单位提交资料后,由社保经办人员对补缴资料进行审核,符合条件的出具《受理回执》,不符合条件的不予受理2、补缴申请受理后,将在20个工作日内完成补缴手续,用人单位可在手续完成后,凭《受理回执》到保险关系部资料发放窗口领取退回资料社保断缴如何补?1、单位补缴可能有人会说不能一次性补缴,那就找单位给我补就行了。
提醒大家,单位补缴社保也不是想补就能补的!2、个人补缴根据推出2022年关于社保补缴的法规,只有以下两类人才能够一次性补缴。
在2011年7月1日前办理社保的人员可以进行补缴;在达到退休年龄的时候,你已经缴纳了五年的养老保险。
四川成都社保补缴需提交的资料1、《四川成都社会保险费补缴申请表》;2、属原固定工及合同制职工的,应提供职工本人的档案、录用(招工)审批表、历年《四川成都职工劳动手册》;3、属其他用工形式的,应提供合同书、录用(招工)审批表(或招工表)、历年《四川成都职工劳动手册》(外地户口职工可不提供);4、未办理招用工手续,但存在事实劳动关系的,应提供存在事实劳动关系的有效证明材料(如原始工资发放表、考勤表等)。
以灵活就业方式的人员如已经参保但欠费的,可以按规补缴,但是对于未在企业任职且未按灵活就业身份参保的人员,不存在应参保未参保的补缴。
拉萨社保卡每个月都在交,拉萨社保卡看病如何报销?(2025/4/22)
上了医保后,如果是在职职工,到医院的门诊、急诊看病后,1800元以上的医疗费用才可以报销,报销的比例是50%。
如果是70周岁以下的退休人员,1300元以上的费用可以报销,报销的比例是70%。
如果是70周岁以上的退休人员,1300元以上的费用可以报销报销的比例是80%。
而无论哪一类人,门诊、急诊大额医疗费支付的费用的最高限额是2万元。
举例来说,如果您是在职职工,在门诊看病的花费是2500元,那么700元的部分可以报销50%,就是350元。
如果是住院的费用,2009年一个年度内首次使用基本医疗保险支付时,无论是在职人员还是退休人员,起付金额都是1300元。
而第二次以及以后住院的医疗费用,起付标准按50%确定,就是650元。
而1个年度内基本医疗保险统筹基金(住院费用)最高支付额是7万元。
社保卡看病怎么报销相关问题1:社保卡医疗报销额度对于70周岁以下退休职工是怎么要求的?答:门急诊每年1300元以上部分,社保支付70%,退休补充保险支付15%,(2000-1300)x85%=595元。
社保卡看病怎么报销相关问题2:社保卡医疗报销额度对于城镇职工是怎么要求的?答:门急诊符合社保医疗费用每年(1-31)1800元以上部分,在指定非社区医疗机构就诊将按照50%比例报销,社区按照70%比例报销。
如果您是本年度首次报销,所发生的医疗费用扣除社保自费、自付项目剩余2000元,其中1800元不能报销有您个人负担,200元乘以50%(非社区)或70%(社区),您将得到100元或140元报销费用。
社保最高给您报销到20000元。
社保卡看病怎么报销相关问题3:社保卡可以报销什么病?答:所有疾病均可以用社保卡报销,社保卡的报销时针对不同医疗项目的不同额度来定的。
而和什么疾病没有关系。