IDTECH NEO2 Manual page 35

Apple ios sdk guide
Hide thumbs Also See for NEO2:
Table of Contents

Advertisement

6.7 Sample Project Tutorial
• Create the 5 IBAction for the buttons, and link them to the "Touch Up Inside" event on the storyboard buttons
#import <UIKit/UIKit.h>
#import <IDTech/IDTech.h>
@interface
ViewController : UIViewController<IDT_NEO2_Delegate>
{
IBOutlet UITextView * lcdTextView;
IBOutlet UITextView * logTextView;
IBOutlet UILabel * connectedLabel;
}
-(IBAction) getFirmware:(id)sender;
-(IBAction) startBLE:(id)sender;
-(IBAction) startTransaction:(id)sender;
-(IBAction) completeEMV:(id)sender;
-(IBAction) cancelTransaction:(id)sender;
@property(nonatomic, strong) UITextView * lcdTextView;
@property(nonatomic, strong) UITextView * logTextView;
@property(nonatomic, strong) UILabel * connectedLabel;
@end
Storyboard Source Code
<?xml
version="1.0"
encoding="UTF-8"?>
<document
type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121"
systemVersion="16F73" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES"
useTraitCollections="YES" colorMatched="YES"
<device
id="retina5_5"
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn
identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
<capability
name="Constraints to layout margins"
<capability
name="documents saved in the Xcode 8 format"
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="ufC-wZ-h7g">
<objects>
<viewController
>
<layoutGuides>
<viewControllerLayoutGuide
<viewControllerLayoutGuide
</layoutGuides>
<view
key="view" contentMode="scaleToFill"
<rect
<autoresizingMask
<subviews>
horizontalHuggingPriority="251" verticalHuggingPriority="251" text="NEO2 Disconnected" textAlignment="center"
lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO"
translatesAutoresizingMaskIntoConstraints="NO"
colorSpace="custom"
customColorSpace="sRGB"/>
horizontalHuggingPriority="251" verticalHuggingPriority="251" text="EMV LCD DISPLAY" textAlignment="center"
="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO"
translatesAutoresizingMaskIntoConstraints="NO"
colorSpace="custom"
customColorSpace="sRGB"/>
scaleToFill" editable="NO" text="LCD DISPLAY INFO" textAlignment="center" translatesAutoresizingMaskIntoConstraints="
NO"
id="XfN-t5-Cxv">
IDTech iOS SDK Guide for NEO2 #80152802-001
initialViewController="vXZ-lx-hvc">
orientation="portrait">
id="vXZ-lx-hvc" customClass="ViewController" sceneMemberID="viewController"
type="top"
type="bottom"
key="frame" x="0.0" y="0.0" width="414"
key="autoresizingMask" flexibleMaxX="YES"
<label
opaque="NO" userInteractionEnabled="NO" contentMode="left"
id="eDI-cL-7k6">
<rect
key="frame" x="16" y="20" width="378"
<constraints>
<constraint
firstAttribute="height" constant="21"
</constraints>
<fontDescription
key="fontDescription" type="system"
<color
key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1"
<nil key="highlightedColor"/>
</label>
<label
opaque="NO" userInteractionEnabled="NO" contentMode="left"
id="oIl-91-J9y">
<rect
key="frame" x="16" y="227" width="378"
<constraints>
<constraint
firstAttribute="height" constant="21"
</constraints>
<fontDescription
key="fontDescription" type="system"
<color
key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1"
<nil key="highlightedColor"/>
</label>
<textView
clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="
<rect
key="frame" x="16" y="256" width="378"
version="12089"/>
minToolsVersion="6.0"/>
minToolsVersion="8.0"/>
id="jyV-Pf-zRb"/>
id="2fi-mo-0CV"/>
id="kh9-bI-dsS">
height="736"/>
height="21"/>
height="21"/>
height="128"/>
25
flexibleMaxY="YES"/>
id="GlQ-61-SfD"/>
pointSize="14"/>
id="cli-EH-4sy"/>
pointSize="14"/>
lineBreakMod

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NEO2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF