D.P.F iOS Native Components ( D.P.F iOSNC )
-----------------------------------------------
How to install and use:
1) Go Tools->Options->Delphi Options->Library and :
1-1) change Selected Pltaform to 32-bit windows and add X:\DPF.iOS.Native.Components\ in library path
1-2) Then change Selected Platform to iOSSimulator and add X:\DPF.iOS.Native.Components\ in library path
1-3) Then change Selected Platform to iOSDevice and add X:\DPF.iOS.Native.Components\ in library path
2) Important: Add this frameworks in the SDK Manager (see Frameworks.png picture after installing)
/System/Library/Frameworks/AddressBookUI
/System/Library/Frameworks/AddressBook
/System/Library/Frameworks/EventKit
/System/Library/Frameworks/MessageUI
/System/Library/Frameworks/AudioToolbox
/System/Library/Frameworks/MapKit
/System/Library/Frameworks/Social
/System/Library/Frameworks/QuickLook
/System/Library/Frameworks/SystemConfiguration
/System/Library/Frameworks/iAd (no need if you are using XE5/XE6/XE7)
/System/Library/Frameworks/StoreKit (no need if you are using XE7)
/System/Library/Frameworks/MobileCoreServices
/System/Library/Frameworks/GameKit
/System/Library/Frameworks/CoreBluetooth
/System/Library/Frameworks/Accounts
/System/Library/Frameworks/AdSupport
Tools -> Options -> SDK Manager -> Scroll down remote paths listview ->Go Frameworks section -> Select one of framework item (e.g: select /System/Library/Frameworks/UIKit) -> click Add the new path item
--------------------------------------
In XE5/XE6/XE7 You must be add $(SDKROOT) the beginning of each path on remote machine value
like this: [ $(SDKROOT)/System/Library/Frameworks ]
--------------------------------------
2-1)
path on remote machine : /System/Library/Frameworks
Framework name: AddressBookUI
include subdirectories: unchecked
Add again:
2-2)
path on remote machine : /System/Library/Frameworks
Framework name: AddressBook
include subdirectories: unchecked
Add again:
2-3)
path on remote machine : /System/Library/Frameworks
Framework name: EventKit
include subdirectories: unchecked
Add again:
2-4)
path on remote machine : /System/Library/Frameworks
Framework name: MessageUI
include subdirectories: unchecked
Add again:
2-5)
path on remote machine : /System/Library/Frameworks
Framework name: AudioToolbox
include subdirectories: unchecked
Add again:
2-6)
path on remote machine : /System/Library/Frameworks
Framework name: MapKit
include subdirectories: unchecked
Add again:
2-7)
path on remote machine : /System/Library/Frameworks
Framework name: Social
include subdirectories: unchecked
Add again:
2-8)
path on remote machine : /System/Library/Frameworks
Framework name: QuickLook
include subdirectories: unchecked
Add again:
2-9)
path on remote machine : /System/Library/Frameworks
Framework name: SystemConfiguration
include subdirectories: unchecked
Add again: (No Need in XE5/XE6/XE7)
2-10)
path on remote machine : /System/Library/Frameworks
Framework name: iAd
include subdirectories: unchecked
Add again: (No Need in XE7)
2-11)
path on remote machine : /System/Library/Frameworks
Framework name: StoreKit
include subdirectories: unchecked
Add again:
2-12)
path on remote machine : /System/Library/Frameworks
Framework name: MobileCoreServices
include subdirectories: unchecked
Add again:
2-13)
path on remote machine : /System/Library/Frameworks
Framework name: GameKit
include subdirectories: unchecked
Add again:
2-14)
path on remote machine : /System/Library/Frameworks
Framework name: CoreBluetooth
include subdirectories: unchecked
Add again:
2-15)
path on remote machine : /System/Library/Frameworks
Framework name: Accounts
include subdirectories: unchecked
Add again:
2-16)
path on remote machine : /System/Library/Frameworks
Framework name: AdSupport
include subdirectories: unchecked
after Ok dialog, click Update local File Cache button.
-------------------------------------------------------------------------------------------
XE4:
3) DPFiOSPackagesXE4.dpk
3-1) Select 32-bit windows and build then install. (No Need Simulator or Device)
XE5:
4) DPFiOSPackagesXE5.dpk
4-1) Select 32-bit windows and build then install. (No Need Simulator or Device)
XE6:
5) DPFiOSPackagesXE6.dpk
5-1) Select 32-bit windows and build then install. (No Need Simulator or Device)
XE7:
5) DPFiOSPackagesXE7.dpk
5-1) Select 32-bit windows and build then install. (No Need Simulator or Device)
Or Use DPFiOSPackagesGroup.groupproj
-------------------------------------------------------------------------------------------
6) Before deploying Demos on Simulator or Device dont forget : Go to
Project Menu - > Deployment -> Deply
-------------------------------------------------------------------------------------------
7) This is very important to: if you want have very high performance in your project override in all you TForm declrations PaintRects
Sample:
type
TFDatePicker = class( TForm )
private
{ Private declarations }
protected
procedure PaintRects( const UpdateRects: array of TRectF ); override; <---- This line a important !
public
{ Public declarations }
end;
and in your implementation:
procedure TFDatePicker.PaintRects( const UpdateRects: array of TRectF );
begin
{} <-- This is important you not have any [inherited] keyword here !
end;
Now, by this work, you not have a delphi Form drawing (very slow), then you must be add a TDPFUIView on the form
and change background color or image,
Enjoy it!
-------------------------------------------------------------------
© 2011-2014 Dadeh Pardazane Faragir (D.P.F). All rights reserved.
http://www.dpfaragir.com
Developed by: Babak Yaghoobi (
b_yaghobi@yahoo.com or
bayaghoobi@gmail.com)
Partager