iOS Tutorials_ Delphi iOS Application Development 英文版 文字版
文件大小: 5111k
源码售价: 10 个金币 积分规则     积分充值
资源说明:《iOS Tutorials_ Delphi iOS Application Development》 《iOS教程:使用Delphi开发iOS应用程序》英文文字版 Contents iOS Tutorials: Delphi iOS Application Development .................................................... 7 Setup ............................................................................................................................... 7 Using Basic User Interface Elements ........................................................................... 7 Using Device Functionality ........................................................................................... 8 Accessing a Dabatase ................................................................................................. 9 See Also ........................................................................................................................... 9 iOS Tutorial: Set Up Your Development Environment on the Mac .......................... 10 Requirements on the Mac ......................................................................................... 10 Steps to Configure Your Mac to Run Your iOS Application on the iOS Simulator ........................................................................................................................................ 10 Step 1: Install the Platform Assistant ...................................................................... 11 Step 2: Run the Platform Assistant ......................................................................... 12 Step 3: Install Xcode on the Mac .......................................................................... 13 Next Steps ................................................................................................................. 14 Additional Steps to Configure Your Mac to Run Your iOS Application on Your iOS Device .................................................................................................................... 14 Step 1: Install the Xcode Command Line Tools on a Mac ................................ 15 Step 2: Sign Up for a Developer Account............................................................ 15 Step 3: Request, Download and Install Your Development Certificate ......... 16 Step 4: Register Your Device for Deployment ..................................................... 17 Step 5: Create and Install a Provisioning Profile .................................................. 18 See Also ......................................................................................................................... 19 iOS Tutorial: Set Up Your Development Environment on Windows PC ................... 20 Setting Up Your RAD Studio Environment ................................................................ 21 Create a Connection Profile for the Mac ........................................................... 21 Add an SDK to the Development System for the iOS Device Connected to the Mac ..................................................................................................................... 23 See Also ......................................................................................................................... 24 iOS Tutorial: Creating a FireMonkey iOS Application ................................................ 25 Before You Start ........................................................................................................... 25 Step 1: Create a New FireMonkey Application for iOS ......................................... 25 Step 2: Place Components on the FireMonkey iOS Form ..................................... 26 Step 3: Write an Event Handler in Delphi for a Button Click by the User ............ 30 Step 4: Test Your iOS Application on the Mac (iOS Simulator) ............................. 31 Step 5: Test Your iOS Application on a Connected iOS Device .......................... 32 See Also ......................................................................................................................... 33 iOS Tutorial: Using a Button Component with Different Styles in an iOS Application ........................................................................................................................................... 34 Buttons in FireMonkey iOS Applications ................................................................... 34 Define the Look and Feel for a Button Component .............................................. 35 Create a Segmented Control Using Button Components ................................... 36 Create a Scope Bar on a Toolbar Component ..................................................... 37 See Also ......................................................................................................................... 38 iOS Tutorial: Using a Calendar Component to Pick a Date in an iOS Application ........................................................................................................................................... 39 Calendar in FireMonkey iOS Applications ............................................................... 39 Implementing an Event Handler for User Changes to the Date .......................... 40 See Also ......................................................................................................................... 41 iOS Tutorial: Using Combo Box Components to Pick Items from a List in an iOS Application ...................................................................................................................... 42 Implementing a Picker in FireMonkey iOS Applications ........................................ 42 Building a List of Items Using Code ........................................................................... 44 Displaying a Specific Item .......................................................................................... 44 Implementing an Event Handler for the User's Selection ...................................... 45 See Also ......................................................................................................................... 46 iOS Tutorial: Using the Web Browser Component in an iOS Application ................ 47 Using the Web Browser Component in FireMonkey iOS Applications ................ 47 Step 1: Design the User Interface .............................................................................. 48 Step 2: Write an Event Handler to Open a Web Page when the User Changes the URL in the Edit Control ......................................................................................... 50 Implement a Common Method to Open a Web Page .................................... 50 Implement an Event Handler for the OnChange Event ................................... 51 Implement an Event Handler to Support the Enter Key .................................... 52 Implement an Event Handler for the Back Button ............................................. 52 Step 3: Select the Proper Keyboard for the Web Browser Application .............. 53 See Also ......................................................................................................................... 54 iOS Tutorial: Using Tab Components to Display Pages in an iOS Application ....... 55 Tabs in FireMonkey iOS Applications ........................................................................ 55 Design Tab Pages Using the Form Designer ............................................................ 55 Use Custom Icons for Your Tabs ................................................................................ 60 Define Controls within a TabControl ........................................................................ 63 Changing the Page at Run Time .............................................................................. 64 By the User Tapping the Tab .................................................................................. 64 By the Actions and an ActionList .......................................................................... 64 By Source Code ....................................................................................................... 66 See Also ......................................................................................................................... 67 iOS Tutorial: Using ListBox Components to Display a Table View in an iOS Application ...................................................................................................................... 68 Using ListBox Components to Display a Table View in an iOS Application ........ 68 Create Items on the ListBox Component ................................................................ 69 Add a Header .............................................................................................................. 71 Add a Group Header/Footer to the List .................................................................. 72 Show List Items as Separate Grouped Items ........................................................... 73 Add a Check Box or Other Accessory to a ListBox Item ....................................... 74 Add an Icon to a ListBox Item ................................................................................... 74 Add Detail Information to an Item ........................................................................... 75 Add Items to a ListBox from Your Code ................................................................... 76 Add a Search Box ....................................................................................................... 78 See Also ......................................................................................................................... 79 iOS Tutorial: Using Layout to Adjust Different Form Sizes or Orientations in an iOS Application ...................................................................................................................... 80 Every FireMonkey Component Can Have an Owner, a Parent and Children . 80 Using Common Layout-Related Properties of a FireMonkey Component ........ 81 Using the Align Property.......................................................................................... 81 Using the Margins Property ..................................................................................... 82 Using the Padding Property ................................................................................... 82 Using the Anchors Property .................................................................................... 83 Using the TLayout Component ................................................................................. 84 Working with a Busy Interface: Using a TVertScrollBox Component ................... 85 See Also ......................................................................................................................... 86 iOS Tutorial: Taking and Sharing a Picture in an iOS Application ............................ 87 Building the User Interface for the Application ...................................................... 88 Taking a Picture with the iOS Device Camera ....................................................... 88 Using a Picture from the iOS Device Photo Library ................................................ 89 Sharing or Printing a Picture ....................................................................................... 90 See Also ......................................................................................................................... 91 iOS Tutorial: Using Location Sensors on the iOS Device ............................................ 92 Design the User Interface ........................................................................................... 93 The Location Sensor .................................................................................................... 94 Read Location Information (Latitude, Longitude) from the LocationSensor Component .................................................................................................................. 94 Show the Current Location Using Google Maps via a TWebBrowser Component .................................................................................................................. 95 Use Reverse Geocoding ............................................................................................ 96 Show a Readable Address in the ListBox Component .......................................... 98 See Also ......................................................................................................................... 98 iOS Tutorial: Using Notification Center on the iOS Device ........................................ 99 Three Basic Notification or Alert Styles ..................................................................... 99 Badge on Application Icon ................................................................................... 99 Notification Banner on iPad ................................................................................... 99 Notification Alert ...................................................................................................... 99 Notification Center on iPad ................................................................................. 100 Access the Notification Service .............................................................................. 100 Set the Icon Badge Number from Code ............................................................... 101 Schedule Notification ............................................................................................... 102 Update or Cancel a Scheduled Notification Message ...................................... 103 Present the Notification Message Immediately ................................................... 104 Notification Banner or Notification Alert ................................................................ 105 Add Action to the Notification Alert ...................................................................... 106 See Also ....................................................................................................................... 106 iOS Tutorial: Using InterBase ToGo in an iOS Application ........................................ 107 Using dbExpress to Connect to the Database ..................................................... 107 Design and Set Up the User Interface .................................................................... 108 Connecting to the Data .......................................................................................... 109 Deploying your Application to iOS ......................................................................... 112 Deploy InterBase ToGo, dbExpress Driver, and the Database File to iOS .... 112 Modify Your Code to Connect to a Local Database File on iOS .................. 114 Run Your Application on the iOS Simulator or an iOS Device ............................ 115 Troubleshooting ......................................................................................................... 116 InterBase License Issues ........................................................................................ 116 Exception Handling Issues .................................................................................... 116 Typical Errors and Resolutions .............................................................................. 117 See Also ....................................................................................................................... 117 iOS Tutorial: Using SQLite in an iOS Application ........................................................ 118 Using dbExpress to Connect to the Database ..................................................... 119 Creating the Database in the Windows Environment for Development Purposes ...................................................................................................................... 119 Create the Database in the Data Explorer ....................................................... 119 Create Table on DataExplorer ............................................................................ 121 Design and Set Up the User Interface .................................................................... 122 Connecting to the Data .......................................................................................... 123 Creating the Event Handler to Make the Delete Button Visible When the User Selects an Item from the List .................................................................................... 124 Creating the Event Handler for the Add Button to Add an Entry to the List .... 125 Creating the Event Handler for the Delete Button to Remove an Entry from the List ................................................................................................................................ 128 Modifying Your Code to Connect to a Local Database File on iOS ................ 128 Specifying the Location of the SQLite Database on the iOS Device ............ 129 Creating a Table if None Exists ............................................................................ 129 Running Your Application on the iOS Simulator or on an iOS Device ............... 130 See Also ....................................................................................................................... 130 iOS Tutorial: Connecting to an Enterprise Database from an iOS Client Application .................................................................................................................... 131 Creating the Middle Tier, a DataSnap Server ....................................................... 132 Create a DataSnap Server VCL Application .................................................... 132 Define a DataSet on the DataSnap Server ....................................................... 135 Expose the DataSet from the DataSnap Server ............................................... 136 Run the DataSnap Server ..................................................................................... 137 Creating an iOS Application that Connects to the DataSnap Server .............. 138 Deploy the MIDAS Library to iOS Simulator ........................................................... 141 Run Your Application on the iOS Simulator, or on an iOS Device ..................... 142 See Also ....................................................................................................................... 142 (省略)
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。