Delphi XE2 iOS Development

juggleroffbeatΚινητά – Ασύρματες Τεχνολογίες

19 Ιουλ 2012 (πριν από 5 χρόνια και 1 μήνα)

981 εμφανίσεις



Delphi XE2

evelopment

Delphi XE2 iOS Development
2
nd
edition, 1
st
May 2012




Author: Bob Swart (aka Dr.Bob)
Bob Swart Training & Consultancy (eBob42)
Delphi XE2 iOS Development
Bob Swart (Bob@eBob42.com
) - I - Bob Swart Training & Consultancy
Table of Contents


1. Configuring Delphi XE2 for iOS 1

Mac OS X 10.6 1

Xcode 4.2 and iOS SDK 1

Warning: no Xcode 4.3 3

Xcode 4.2 and iOS 5.1 3

FireMonkey and FPC 5

Free Pascal Compiler 6

FireMonkey iOS XE2 8

Summary 9

2. FireMonkey for iOS 11

FireMonkey HD for iOS 11

Test on Win32 15

dpr2xcode 16

FireMonkey for iOS Forms 24

FireMonkey Form Properties 24

FireMonkey Form Events 26

Hacking FMX_Platform_iOS? 36

FireMonkey for iOS Components 37

FireMonkey for iOS Properties 37

FireMonkey for iOS Events 38

FireMonkey for iOS Styles 39

Standard iOS Components 41

TStyleBook 42

TLang 42

TCheckBox 44

TRadioButton 45

TGroupBox 45

TPanel 45

TCalloutPanel 45

TLabel 45

TImageControl 46

TPathLabel 46

TProgressBar 47

TScrollBar 47

TSmallScrollBar 47

TExpander 47

TTrackBar 47

TSwitch 47

TSplitter 47

TStatusBar 47

TToolBar 47

TButton 48

TListBox 49

TComboBox 49

TMemo 49

TEdit 49

TTreeView 50

Additional iOS Components 51

TSpeedButton 51

TCornerButton 51

TArcDial 52

TAnIndicator 52

Delphi XE2 iOS Development
Bob Swart (Bob@eBob42.com
) - II - Bob Swart Training & Consultancy
TCalendar 52

TCalendarBox 53

TCalendarEdit 53

TImageViewer 53

TNumberBox 54

TSpinBox 54

TComboEdit 54

TComboTrackBar 54

TDropTarget 55

TCleaningEdit 55

TPlotGrid 55

iOS System Component: TTimer 55

iOS Grid Components 56

TGrid 56

TStringGrid 59

THeader 60

iOS Common Controls: TTabControl 62

iOS Animations Components 63

TColorAnimation 63

TGradientAnimation 64

TFloatAnimation 65

TRectAnimation 65

TBitmapAnimation 66

TBitmapListAnimation 66

TColorKeyAnimation 66

TFloatKeyAnimation 66

TPathAnimation 66

iOS Colors Components 67

THueTrackBar 67

TAlphaTrackBar 67

TBWTrackBar 67

TColorQuad 68

TColorPicker 68

TColorPanel 68

TGradientEdit 68

TColorBox 68

TComboColorBox 68

TColorButton 68

TColorComboBox 69

TColorListBox 69

iOS Effects Components 70

iOS Viewports: TViewport3D 72

iOS Shapes Components 73

TLine 73

TRectangle 73

TRoundRect 73

TEllipse 74

TCircle 74

TArc 74

TPie 74

TText 74

TPath 74

TImage 74

TPaintBox 74

TCalloutRectangle 74

TSelection 74

TSelectionPoint 74

Delphi XE2 iOS Development
Bob Swart (Bob@eBob42.com
) - III - Bob Swart Training & Consultancy
iOS Layouts Components 75

TLayout 75

TScaledLayout 75

TGridLayout 75

TScrollBox 76

TVertScrollBox 76

TFramedScrollBox 76

TFramedVertScrollBox 76

iOS 3D Scene Components 76

iOS 3D Shapes Components 77

iOS 3D Layers Components 78

Other iOS Components 78

FireMonkey for iOS Techniques 79

Splash Screen and ShowMessage 79

iOS Status- and ToolBar 79

Rotating (iOS) Devices 80

Simulating Frames 82

Form Navigation 86

Rotating Multiple Forms 87

Summary 88


3. Native iOS Development 89

iOS Tips & Tricks 89

Screenshots 89

App Switcher 89

Kill Apps 90

FireMonkey for iOS Techniques 90

No Auto Orientation 90

iPhoneAll unit 91

Open URL 93

Dialing a phone number 93

Sending an e-mail 94

FireMonkey for iOS Custom Components 94

TiOSSwipeGestureRecognizer 95

TiOSAccelerometer 96

TiOSGauge 97

TiOSLocation 98

TiOSReverseGeoCoder 99

TiOSIconBadge 100

TiOSEmail 100

TiOSMap 100

TiOSURL 101

TiOSPhone 101

iOS App: Game of Memory 101

Orientation? 106

Close? 108

AppStore Deployment 108

iTunes Connect 108

Xcode Organiser 109

iOS App: Anders' Analog Clock 112

iPad App: Scrapboard 113

iOS and Databases: SQLite 117

IFDEF FPC 117

TSQLite 117

Using TSQLite 118

Summary 120

Delphi XE2 iOS Development
Bob Swart (Bob@eBob42.com
) - IV - Bob Swart Training & Consultancy
4. DataSnap Mobile iOS Clients 121

DataSnap REST Server 121

Mobile Connectors 123

Server Methods 126

DataSnap Client 127

Export to Xcode 130

Summary 132


5. Third Party Solutions 133

RealThin Client SDK 133

Installing RTC 133

RTC SDK and iOS 134

RTC SDK iOS Demos 135

RTC FishFactServer 136

RTC iosTestClient 138

TMS TableView 144

TMS Instrumentation Workshop 144

Summary 145


A. Browser-based Clients 147

TMS IntraWeb iPhone Controls Pack 147

TTIWiPhoneButton 149

TTIWiPhoneEmailLabel 149

TTIWiPhoneFooter 150

TTIWiPhoneGeolocation 150

TTIWiPhoneHeader 150

TTIWiPhoneList 150

TTIWiPhoneLocationLabel 150

TTIWiPhoneMenu 150

TTIWiPhoneOnOffButton 151

TTIWiPhonePageFlip 151

TTIWiPhonePhoneLabel 151

TTIWiPhoneRegion 151

TTIWiPhoneScrollRegion 151

TTIWiPhoneSMSLabel 151

TTIWiPhoneStyle 151

TTIWiPhoneTrackbar 152

TMS iPhone Controls Demo 152

Registered Users 162

Summary 165








The information in this courseware manual is © 2012 by drs. Robert E. (Bob)
Swart of Bob Swart Training & Consultancy. All Rights Reserved.

The information in this courseware manual is presented to the best of my knowledge at
the time of writing. However, in case of errors or omissions, I welcome your feedback or
comments (by e-mail) as Bob Swart Training & Consultancy cannot be held responsible
for any damage that results from using the information in this manual or the example
source code snippets. Thanks in advance for your understanding.