Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
039ac0a6
Commit
039ac0a6
authored
Apr 17, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增TitleAndSwitchCell
parent
20d094c2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
99 additions
and
2 deletions
+99
-2
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+8
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/TitleAndSwitchCell.swift
GeliBusinessPlatform/View/Cell/TitleAndSwitchCell.swift
+25
-0
GeliBusinessPlatform/View/Cell/TitleAndSwitchCell.xib
GeliBusinessPlatform/View/Cell/TitleAndSwitchCell.xib
+63
-0
GeliBusinessPlatform/ViewController/蓝牙连接/BluetoothConnectViewController.swift
.../ViewController/蓝牙连接/BluetoothConnectViewController.swift
+3
-2
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
039ac0a6
...
...
@@ -65,6 +65,8 @@
F9023F6A2449A50900DD5A63
/* TitleContentCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9023F682449A50900DD5A63
/* TitleContentCell.xib */
;
};
F9023F6D2449A9B100DD5A63
/* TitleAndTFCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9023F6B2449A9B100DD5A63
/* TitleAndTFCell.swift */
;
};
F9023F6E2449A9B100DD5A63
/* TitleAndTFCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9023F6C2449A9B100DD5A63
/* TitleAndTFCell.xib */
;
};
F9023F712449ACA800DD5A63
/* TitleAndSwitchCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9023F6F2449ACA800DD5A63
/* TitleAndSwitchCell.swift */
;
};
F9023F722449ACA800DD5A63
/* TitleAndSwitchCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9023F702449ACA800DD5A63
/* TitleAndSwitchCell.xib */
;
};
F95D9B5024484FAE0080D6E3
/* GeliAlertView.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F95D9B4F24484FAE0080D6E3
/* GeliAlertView.xib */
;
};
F95D9B522448530E0080D6E3
/* GeliAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F95D9B512448530E0080D6E3
/* GeliAlertView.swift */
;
};
F95D9CA424493E840080D6E3
/* ShopInfoViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F95D9CA224493E840080D6E3
/* ShopInfoViewController.swift */
;
};
...
...
@@ -165,6 +167,8 @@
F9023F682449A50900DD5A63
/* TitleContentCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
TitleContentCell.xib
;
sourceTree
=
"<group>"
;
};
F9023F6B2449A9B100DD5A63
/* TitleAndTFCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TitleAndTFCell.swift
;
sourceTree
=
"<group>"
;
};
F9023F6C2449A9B100DD5A63
/* TitleAndTFCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
TitleAndTFCell.xib
;
sourceTree
=
"<group>"
;
};
F9023F6F2449ACA800DD5A63
/* TitleAndSwitchCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TitleAndSwitchCell.swift
;
sourceTree
=
"<group>"
;
};
F9023F702449ACA800DD5A63
/* TitleAndSwitchCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
TitleAndSwitchCell.xib
;
sourceTree
=
"<group>"
;
};
F95D9B4F24484FAE0080D6E3
/* GeliAlertView.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
GeliAlertView.xib
;
sourceTree
=
"<group>"
;
};
F95D9B512448530E0080D6E3
/* GeliAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GeliAlertView.swift
;
sourceTree
=
"<group>"
;
};
F95D9CA224493E840080D6E3
/* ShopInfoViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ShopInfoViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -517,6 +521,8 @@
F9023F682449A50900DD5A63
/* TitleContentCell.xib */
,
F9023F6B2449A9B100DD5A63
/* TitleAndTFCell.swift */
,
F9023F6C2449A9B100DD5A63
/* TitleAndTFCell.xib */
,
F9023F6F2449ACA800DD5A63
/* TitleAndSwitchCell.swift */
,
F9023F702449ACA800DD5A63
/* TitleAndSwitchCell.xib */
,
);
path
=
Cell
;
sourceTree
=
"<group>"
;
...
...
@@ -660,6 +666,7 @@
E0D197D6244860B1002B080C
/* BlueToothCell.xib in Resources */
,
E0D197CB24484D90002B080C
/* PersonCenterCell.xib in Resources */
,
E00D85EB244561FE00F5F816
/* LaunchScreen.storyboard in Resources */
,
F9023F722449ACA800DD5A63
/* TitleAndSwitchCell.xib in Resources */
,
E0D4166024482AAF008DCAB4
/* AccountViewController.xib in Resources */
,
F95D9CA524493E840080D6E3
/* ShopInfoViewController.xib in Resources */
,
E01C26B12446989700ADCC70
/* Interface_Z.plist in Resources */
,
...
...
@@ -735,6 +742,7 @@
files
=
(
F9023F6D2449A9B100DD5A63
/* TitleAndTFCell.swift in Sources */
,
E0D197BA2448431C002B080C
/* BabyDefine.m in Sources */
,
F9023F712449ACA800DD5A63
/* TitleAndSwitchCell.swift in Sources */
,
E09B03B62445B85A00211A51
/* LoginViewController.swift in Sources */
,
E0D197C12448431C002B080C
/* BabyToy.m in Sources */
,
E09B03C32445BD9500211A51
/* NavViewController.swift in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
039ac0a6
No preview for this file type
GeliBusinessPlatform/View/Cell/TitleAndSwitchCell.swift
0 → 100644
View file @
039ac0a6
//
// TitleAndSwitchCell.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/4/17.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
TitleAndSwitchCell
:
UITableViewCell
{
@IBOutlet
weak
var
infoSw
:
UISwitch
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
}
GeliBusinessPlatform/View/Cell/TitleAndSwitchCell.xib
0 → 100644
View file @
039ac0a6
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16096"
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=
"16086"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<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"
id=
"KGk-i7-Jjw"
customClass=
"TitleAndSwitchCell"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"50"
/>
<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=
"320"
height=
"50"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Bds-Lh-7Ha"
>
<rect
key=
"frame"
x=
"15"
y=
"49"
width=
"305"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
relation=
"greaterThanOrEqual"
constant=
"1"
id=
"Nqx-zY-rFF"
/>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"cXa-7q-mpy"
/>
</constraints>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"标题:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"fA1-yF-28i"
>
<rect
key=
"frame"
x=
"15"
y=
"17"
width=
"40"
height=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<switch
opaque=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"750"
verticalHuggingPriority=
"750"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
on=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FvZ-bw-uC0"
>
<rect
key=
"frame"
x=
"256"
y=
"9.5"
width=
"51"
height=
"31"
/>
</switch>
</subviews>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"Bds-Lh-7Ha"
secondAttribute=
"bottom"
id=
"0PF-oT-n5E"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Bds-Lh-7Ha"
secondAttribute=
"trailing"
id=
"8cY-OD-5T0"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"FvZ-bw-uC0"
secondAttribute=
"trailing"
constant=
"15"
id=
"Erv-w0-1bq"
/>
<constraint
firstItem=
"FvZ-bw-uC0"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"Lm1-iE-0pD"
/>
<constraint
firstItem=
"fA1-yF-28i"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"Sbu-8k-mlN"
/>
<constraint
firstItem=
"Bds-Lh-7Ha"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"Ub8-Dc-vqs"
/>
<constraint
firstItem=
"fA1-yF-28i"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"xkg-cs-Jt4"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"infoSw"
destination=
"FvZ-bw-uC0"
id=
"qJb-jc-KCl"
/>
</connections>
<point
key=
"canvasLocation"
x=
"-74"
y=
"82"
/>
</tableViewCell>
</objects>
<resources>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.1803921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/蓝牙连接/BluetoothConnectViewController.swift
View file @
039ac0a6
...
...
@@ -26,7 +26,7 @@ class BluetoothConnectViewController: BaseViewController,UITableViewDelegate,UIT
make
.
bottom
.
equalTo
(
bottomView
.
snp_top
)
}
tableView
?
.
register
(
UINib
(
nibName
:
"BlueToothCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"BlueTooth"
)
tableView
?
.
register
(
UINib
(
nibName
:
"TitleAnd
TFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTF
Cell"
)
tableView
?
.
register
(
UINib
(
nibName
:
"TitleAnd
SwitchCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndSwitch
Cell"
)
}
...
...
@@ -98,7 +98,8 @@ class BluetoothConnectViewController: BaseViewController,UITableViewDelegate,UIT
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
section
==
0
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndSwitchCell"
)
as!
TitleAndSwitchCell
cell
.
infoSw
.
transform
=
CGAffineTransform
(
scaleX
:
0.8
,
y
:
0.8
)
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"BlueTooth"
)
as!
BlueToothCell
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment