Skip to content
Snippets Groups Projects
Commit 4dc908e9 authored by ufuktugay's avatar ufuktugay
Browse files

removed unnecessary files

parent aac11494
No related branches found
No related tags found
No related merge requests found
//
// StartScreen.swift
// Objekterkennung in AR mit ARKit und CoreML
//
// Created by Ufuk Kaan on 17.06.21.
//
import Foundation
import UIKit
//
// objectsTableViewCell.swift
// Objekterkennung in AR mit ARKit und CoreML
//
// Created by Ufuk Kaan on 22.06.21.
//
import UIKit
import BFWControls
protocol objectsTableViewCellDelegate: AnyObject{
func didTapButton(with title: String)
}
class objectsTableViewCell: UITableViewCell {
weak var delegate: objectsTableViewCellDelegate?
static let identifier = "objectsTableViewCell"
static func nib() -> UINib{
return UINib(nibName: "objectsTableViewCell", bundle: nil)
}
@IBOutlet var button: UIButton!
private var title: String = ""
@IBAction func didTapButton(){
delegate?.didTapButton(with: title)
}
func configure(with title: String){
self.title = title
button.setTitle(title, for: .normal)
}
override func awakeFromNib() {
super.awakeFromNib()
button.setTitleColor(.link, for: .normal)
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="objectsTableViewCell" rowHeight="65" id="KGk-i7-Jjw" customClass="objectsTableViewCell" customModule="Objekterkennung_in_AR_mit_ARKit_und_CoreML" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="379" height="65"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="379" height="65"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bJD-Ce-Fjd">
<rect key="frame" x="0.0" y="0.0" width="379" height="65"/>
<state key="normal" title="Test Object"/>
<connections>
<action selector="didTapButton" destination="KGk-i7-Jjw" eventType="touchUpInside" id="LRI-QZ-Q1R"/>
</connections>
</button>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="bJD-Ce-Fjd" secondAttribute="bottom" id="5tF-Ff-CwO"/>
<constraint firstItem="bJD-Ce-Fjd" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="RNm-Ge-u1O"/>
<constraint firstAttribute="trailing" secondItem="bJD-Ce-Fjd" secondAttribute="trailing" id="nID-f1-qgH"/>
<constraint firstItem="bJD-Ce-Fjd" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="nkP-dW-ZyD"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="button" destination="bJD-Ce-Fjd" id="HFE-Q1-HuF"/>
</connections>
<point key="canvasLocation" x="180.43478260869566" y="51.897321428571423"/>
</tableViewCell>
</objects>
</document>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment