Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckFarm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
LuckFarm
Commits
1b883c02
Commit
1b883c02
authored
Nov 13, 2020
by
Mazy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize code
parent
0357690c
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
101 additions
and
100 deletions
+101
-100
GYCashSixAwardAlertView.m
GYDemo/GYDemo/Alert/GYCashSixAwardAlertView.m
+4
-3
GYCashSixAwardAlertView.xib
GYDemo/GYDemo/Alert/GYCashSixAwardAlertView.xib
+15
-15
GYGiftAlertView.m
GYDemo/GYDemo/Alert/GYGiftAlertView.m
+3
-2
GYGiftAlertView.xib
GYDemo/GYDemo/Alert/GYGiftAlertView.xib
+11
-11
GYGiftCell.xib
GYDemo/GYDemo/Alert/GYGiftCell.xib
+8
-8
AppDelegate.mm
GYDemo/GYDemo/AppDelegate.mm
+13
-26
Main.storyboard
GYDemo/GYDemo/Base.lproj/Main.storyboard
+14
-14
CGNetworkTools.m
GYDemo/GYDemo/Network/CGNetworkTools.m
+2
-1
GYLoginViewController.m
GYDemo/GYDemo/ViewController/GYLoginViewController.m
+6
-0
GYNative.storyboard
GYDemo/GYDemo/ViewController/GYNative.storyboard
+20
-20
IDEFindNavigatorScopes.plist
.../xcuserdata/mazy.xcuserdatad/IDEFindNavigatorScopes.plist
+5
-0
UserInterfaceState.xcuserstate
...cuserdata/mazy.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
No files found.
GYDemo/GYDemo/Alert/GYCashSixAwardAlertView.m
View file @
1b883c02
...
...
@@ -78,10 +78,11 @@
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
5
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
//: 开始显示广告
[
self
getAdsDataSource
];
CGFloat
offset
=
(
UIScreen
.
mainScreen
.
bounds
.
size
.
height
-
self
.
mainContentView
.
bounds
.
size
.
height
)
/
2
-
40
-
statusBarFrameHeight
;
[
UIView
animateWithDuration
:
0
.
25
animations
:
^
{
self
.
mainContentView
.
transform
=
CGAffineTransformMakeTranslation
(
0
,
-
160
);
self
.
adContentView
.
transform
=
CGAffineTransformMakeTranslation
(
0
,
-
160
);
self
.
cancelButton
.
transform
=
CGAffineTransformMakeTranslation
(
0
,
-
160
);
self
.
mainContentView
.
transform
=
CGAffineTransformMakeTranslation
(
0
,
-
offset
);
self
.
adContentView
.
transform
=
CGAffineTransformMakeTranslation
(
0
,
-
offset
);
self
.
cancelButton
.
transform
=
CGAffineTransformMakeTranslation
(
0
,
-
offset
);
}
completion
:^
(
BOOL
finished
)
{
}];
...
...
GYDemo/GYDemo/Alert/GYCashSixAwardAlertView.xib
View file @
1b883c02
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17156"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_
1
"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina6_
5
"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17125"
/>
...
...
@@ -15,20 +15,20 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"HYO-Ph-Ebm"
>
<rect
key=
"frame"
x=
"342.
5
"
y=
"234"
width=
"32"
height=
"32"
/>
<rect
key=
"frame"
x=
"342.
66666666666669
"
y=
"234"
width=
"32"
height=
"32"
/>
<state
key=
"normal"
image=
"gift_cancel"
backgroundImage=
"alert_six_cash_timer_icon"
/>
<connections>
<action
selector=
"cancelAction"
destination=
"iN0-l3-epB"
eventType=
"touchUpInside"
id=
"1jx-AM-vlY"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bGP-FP-Uak"
>
<rect
key=
"frame"
x=
"39.
5
"
y=
"286"
width=
"335"
height=
"334"
/>
<rect
key=
"frame"
x=
"39.
666666666666657
"
y=
"286"
width=
"335"
height=
"334"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"gift_bg"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2da-nI-zSn"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"335"
height=
"334"
/>
</imageView>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"gift_mask"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"HHN-9a-UCS"
>
<rect
key=
"frame"
x=
"9"
y=
"25.
5
"
width=
"317"
height=
"230"
/>
<rect
key=
"frame"
x=
"9"
y=
"25.
333333333333314
"
width=
"317"
height=
"230"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"230"
id=
"lxh-II-Sff"
/>
</constraints>
...
...
@@ -37,7 +37,7 @@
<rect
key=
"frame"
x=
"-9"
y=
"-60"
width=
"353"
height=
"155"
/>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ylj-kZ-eAE"
>
<rect
key=
"frame"
x=
"58.
5"
y=
"265.5"
width=
"218.5"
height=
"48.5
"
/>
<rect
key=
"frame"
x=
"58.
000000000000014"
y=
"265.33333333333337"
width=
"218.66666666666669"
height=
"48.666666666666686
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"semibold"
pointSize=
"19"
/>
<state
key=
"normal"
title=
" 领6倍奖励"
image=
"alert_six_cash_play_btn_bg"
backgroundImage=
"alert_six_cash_btn_bg"
/>
<connections>
...
...
@@ -45,22 +45,22 @@
</connections>
</button>
<stackView
opaque=
"NO"
contentMode=
"scaleToFill"
spacing=
"4"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Dnt-Dm-Z8f"
>
<rect
key=
"frame"
x=
"47.
5"
y=
"198"
width=
"240.5
"
height=
"36"
/>
<rect
key=
"frame"
x=
"47.
333333333333329"
y=
"197.66666666666669"
width=
"240.33333333333337
"
height=
"36"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"获得翻倍奖励"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"zxy-Fc-ho1"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"128.
5
"
height=
"36"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"128.
33333333333334
"
height=
"36"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"21"
/>
<color
key=
"textColor"
red=
"0.56470588235294117"
green=
"0.36078431372549019"
blue=
"0.15686274509803921"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"+2.09"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"MRv-Ar-Cpc"
>
<rect
key=
"frame"
x=
"132.
5"
y=
"0.0"
width=
"82.5
"
height=
"36"
/>
<rect
key=
"frame"
x=
"132.
33333333333334"
y=
"0.0"
width=
"82.333333333333343
"
height=
"36"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"medium"
pointSize=
"30"
/>
<color
key=
"textColor"
red=
"0.91764705879999997"
green=
"0.31764705879999999"
blue=
"0.2901960784"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"元"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"TGu-2Q-UAs"
>
<rect
key=
"frame"
x=
"21
9"
y=
"0.0"
width=
"21.5
"
height=
"36"
/>
<rect
key=
"frame"
x=
"21
8.66666666666669"
y=
"0.0"
width=
"21.666666666666657
"
height=
"36"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"21"
/>
<color
key=
"textColor"
red=
"0.56470588239999997"
green=
"0.36078431370000003"
blue=
"0.15686274510000001"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -68,13 +68,13 @@
</subviews>
</stackView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"获得翻倍奖励"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"i3a-5g-mXh"
>
<rect
key=
"frame"
x=
"100.
5"
y=
"-12"
width=
"134"
height=
"26.5
"
/>
<rect
key=
"frame"
x=
"100.
33333333333334"
y=
"-12"
width=
"134"
height=
"26.333333333333332
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"black"
pointSize=
"22"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"center"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"toast_double_red_icon"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"p9y-5L-dzc"
>
<rect
key=
"frame"
x=
"9
4.5"
y=
"63.5"
width=
"146.5"
height=
"114.5
"
/>
<rect
key=
"frame"
x=
"9
3.999999999999986"
y=
"63.000000000000007"
width=
"146.66666666666663"
height=
"114.66666666666669
"
/>
</imageView>
</subviews>
<constraints>
...
...
@@ -97,7 +97,7 @@
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"VdM-km-MHW"
>
<rect
key=
"frame"
x=
"39.
5
"
y=
"640"
width=
"335"
height=
"200"
/>
<rect
key=
"frame"
x=
"39.
666666666666657
"
y=
"640"
width=
"335"
height=
"200"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"200"
id=
"uuc-Fn-Fe8"
/>
</constraints>
...
...
@@ -129,13 +129,13 @@
</view>
</objects>
<resources>
<image
name=
"alert_six_cash_btn_bg"
width=
"218.
5"
height=
"48.5
"
/>
<image
name=
"alert_six_cash_btn_bg"
width=
"218.
66667175292969"
height=
"48.666667938232422
"
/>
<image
name=
"alert_six_cash_play_btn_bg"
width=
"25"
height=
"25"
/>
<image
name=
"alert_six_cash_timer_icon"
width=
"28"
height=
"28.
5
"
/>
<image
name=
"alert_six_cash_timer_icon"
width=
"28"
height=
"28.
666666030883789
"
/>
<image
name=
"gift_bg"
width=
"335"
height=
"334"
/>
<image
name=
"gift_cancel"
width=
"32"
height=
"32"
/>
<image
name=
"gift_mask"
width=
"317"
height=
"228"
/>
<image
name=
"order_header"
width=
"353"
height=
"155"
/>
<image
name=
"toast_double_red_icon"
width=
"146.
5"
height=
"114.5
"
/>
<image
name=
"toast_double_red_icon"
width=
"146.
66667175292969"
height=
"114.66666412353516
"
/>
</resources>
</document>
GYDemo/GYDemo/Alert/GYGiftAlertView.m
View file @
1b883c02
...
...
@@ -126,9 +126,10 @@
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
5
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
//: 开始显示广告
[
self
getAdsDataSource
];
CGFloat
offset
=
(
UIScreen
.
mainScreen
.
bounds
.
size
.
height
-
self
.
bgView
.
bounds
.
size
.
height
)
/
2
-
40
-
statusBarFrameHeight
;
[
UIView
animateWithDuration
:
0
.
25
animations
:
^
{
self
.
bgView
.
transform
=
CGAffineTransformMakeTranslation
(
0
,
-
160
);
self
.
adContentView
.
transform
=
CGAffineTransformMakeTranslation
(
0
,
-
160
);
self
.
bgView
.
transform
=
CGAffineTransformMakeTranslation
(
0
,
-
offset
);
self
.
adContentView
.
transform
=
CGAffineTransformMakeTranslation
(
0
,
-
offset
);
}
completion
:^
(
BOOL
finished
)
{
}];
...
...
GYDemo/GYDemo/Alert/GYGiftAlertView.xib
View file @
1b883c02
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17156"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina
6_1
"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina
5_5
"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17125"
/>
...
...
@@ -12,23 +12,23 @@
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
contentMode=
"scaleToFill"
id=
"iN0-l3-epB"
customClass=
"GYGiftAlertView"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
89
6"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
73
6"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"4qd-2X-2kQ"
>
<rect
key=
"frame"
x=
"16.
5"
y=
"248"
width=
"381
"
height=
"400"
/>
<rect
key=
"frame"
x=
"16.
666666666666657"
y=
"168"
width=
"380.66666666666674
"
height=
"400"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"gift_bg"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wec-0m-x6P"
>
<rect
key=
"frame"
x=
"5"
y=
"68.
5"
width=
"371"
height=
"341.5
"
/>
<rect
key=
"frame"
x=
"5"
y=
"68.
666666666666657"
width=
"370.66666666666669"
height=
"341.33333333333337
"
/>
</imageView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"LPX-8e-GMj"
>
<rect
key=
"frame"
x=
"18"
y=
"88.
5"
width=
"345
"
height=
"228"
/>
<rect
key=
"frame"
x=
"18"
y=
"88.
666666666666686"
width=
"344.66666666666669
"
height=
"228"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"gift_mask"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"KPA-TL-pwU"
>
<rect
key=
"frame"
x=
"-5"
y=
"5"
width=
"35
5
"
height=
"228"
/>
<rect
key=
"frame"
x=
"-5"
y=
"5"
width=
"35
4.66666666666669
"
height=
"228"
/>
</imageView>
<collectionView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
dataMode=
"none"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"3gA-JC-WLJ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"50"
width=
"34
5
"
height=
"178"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"50"
width=
"34
4.66666666666669
"
height=
"178"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<collectionViewFlowLayout
key=
"collectionViewLayout"
minimumLineSpacing=
"10"
minimumInteritemSpacing=
"10"
id=
"e4W-tH-xOm"
>
<size
key=
"itemSize"
width=
"128"
height=
"128"
/>
...
...
@@ -51,10 +51,10 @@
</constraints>
</view>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"order_header"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"pFs-il-GHF"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"38
1
"
height=
"155"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"38
0.66666666666669
"
height=
"155"
/>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"BUz-Se-wQ9"
>
<rect
key=
"frame"
x=
"53.
5"
y=
"334.5"
width=
"274"
height=
"51
"
/>
<rect
key=
"frame"
x=
"53.
333333333333314"
y=
"334.66666666666669"
width=
"274"
height=
"50.666666666666686
"
/>
<constraints>
<constraint
firstAttribute=
"width"
secondItem=
"BUz-Se-wQ9"
secondAttribute=
"height"
multiplier=
"248:46"
id=
"uTK-td-geA"
/>
</constraints>
...
...
@@ -65,7 +65,7 @@
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"eUM-sc-sxa"
>
<rect
key=
"frame"
x=
"32
1
"
y=
"0.0"
width=
"60"
height=
"60"
/>
<rect
key=
"frame"
x=
"32
0.66666666666663
"
y=
"0.0"
width=
"60"
height=
"60"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"60"
id=
"2C0-m8-t2w"
/>
<constraint
firstAttribute=
"width"
constant=
"60"
id=
"4v0-E1-tEj"
/>
...
...
@@ -97,7 +97,7 @@
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"KW0-bM-2mY"
>
<rect
key=
"frame"
x=
"16.
5"
y=
"668"
width=
"381
"
height=
"180"
/>
<rect
key=
"frame"
x=
"16.
666666666666657"
y=
"588"
width=
"380.66666666666674
"
height=
"180"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"180"
id=
"sfE-Ry-Myq"
/>
</constraints>
...
...
GYDemo/GYDemo/Alert/GYGiftCell.xib
View file @
1b883c02
...
...
@@ -11,18 +11,18 @@
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<collectionViewCell
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
id=
"gTV-IL-0wX"
customClass=
"GYGiftCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"163"
height=
"1
58
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"163"
height=
"1
25
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<view
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"163"
height=
"1
58
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"163"
height=
"1
25
"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"gift_seed_1"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"171-mY-Szm"
>
<rect
key=
"frame"
x=
"61"
y=
"
48
"
width=
"41"
height=
"46"
/>
<rect
key=
"frame"
x=
"61"
y=
"
23.5
"
width=
"41"
height=
"46"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"+1"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"kiQ-IN-LG2"
>
<rect
key=
"frame"
x=
"
71.5"
y=
"104"
width=
"20.5"
height=
"23
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"
medium"
pointSize=
"19
"
/>
<rect
key=
"frame"
x=
"
68.5"
y=
"79.5"
width=
"26"
height=
"27.5
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"
semibold"
pointSize=
"23
"
/>
<color
key=
"textColor"
red=
"0.56078431370000004"
green=
"0.29803921570000003"
blue=
"0.027450980390000001"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
key=
"highlightedColor"
red=
"0.5607843137254902"
green=
"0.29803921568627451"
blue=
"0.027450980392156862"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</label>
...
...
@@ -30,17 +30,17 @@
</view>
<viewLayoutGuide
key=
"safeArea"
id=
"SEy-5g-ep8"
/>
<constraints>
<constraint
firstItem=
"171-mY-Szm"
firstAttribute=
"centerY"
secondItem=
"gTV-IL-0wX"
secondAttribute=
"centerY"
multiplier=
"0.9"
id=
"Kl2-ma-YxH"
/>
<constraint
firstItem=
"171-mY-Szm"
firstAttribute=
"centerY"
secondItem=
"gTV-IL-0wX"
secondAttribute=
"centerY"
multiplier=
"0.9"
constant=
"-10"
id=
"Kl2-ma-YxH"
/>
<constraint
firstItem=
"kiQ-IN-LG2"
firstAttribute=
"centerX"
secondItem=
"171-mY-Szm"
secondAttribute=
"centerX"
id=
"RsR-LS-6BH"
/>
<constraint
firstItem=
"kiQ-IN-LG2"
firstAttribute=
"top"
secondItem=
"171-mY-Szm"
secondAttribute=
"bottom"
constant=
"10"
id=
"SeE-GA-9tk"
/>
<constraint
firstItem=
"171-mY-Szm"
firstAttribute=
"centerX"
secondItem=
"gTV-IL-0wX"
secondAttribute=
"centerX"
id=
"vNq-a3-EZS"
/>
</constraints>
<size
key=
"customSize"
width=
"163"
height=
"1
58
"
/>
<size
key=
"customSize"
width=
"163"
height=
"1
25
"
/>
<connections>
<outlet
property=
"giftImv"
destination=
"171-mY-Szm"
id=
"Pml-mw-e9M"
/>
<outlet
property=
"numLab"
destination=
"kiQ-IN-LG2"
id=
"2yK-Lh-PDC"
/>
</connections>
<point
key=
"canvasLocation"
x=
"219.56521739130437"
y=
"
91.071428571428569
"
/>
<point
key=
"canvasLocation"
x=
"219.56521739130437"
y=
"
80.022321428571431
"
/>
</collectionViewCell>
</objects>
<resources>
...
...
GYDemo/GYDemo/AppDelegate.mm
View file @
1b883c02
...
...
@@ -578,12 +578,17 @@ NSDictionary* appLaunchOpts;
- (void)ios_onRedPackReceive: (int)redPackId redPackMoneyNum: (const char *)moneyNum {
//redPackReceive
NSString * moneyNumber = [[NSString alloc] initWithUTF8String: moneyNum];
WEAKSELF
[[CGNetworkTools shared] postWithAction:redPackReceive parameters:@{@"id": [NSString stringWithFormat:@"%d", redPackId]} success:^(id _Nonnull response) {
NSDictionary *data = [[response objectForKey:@"result"] objectForKey:@"data"];
NSString *multipleSid = [[data objectForKey:@"double"] objectForKey:@"multipleSid"];
if (multipleSid) {
[self awardMultiple: multipleSid moneyNum: moneyNumber];
NSInteger result = [[data objectForKey:@"force"] integerValue];
if (result == 1) {
[weakSelf gainMultipleAward: multipleSid];
} else {
[self awardMultiple: multipleSid moneyNum: moneyNumber];
}
}
} failure:^(NSError * _Nonnull error) {
...
...
@@ -596,19 +601,15 @@ NSDictionary* appLaunchOpts;
GYCashSixAwardAlertView *alertVC = [GYCashSixAwardAlertView loadFromNib];
[alertVC showAlertToView:[[self ufw] appController].window amount:num firstShow: true];
WEAKSELF
//
WEAKSELF
alertVC.closeCallBack = ^(bool result) {
if (result) {
[self gainMultipleAward: sid];
} else {
// 取消播放领取
[[CGNetworkTools shared] postWithAction: adForcePost parameters:@{} success:^(id _Nonnull response) {
NSDictionary *data = [[response objectForKey:@"result"] objectForKey:@"data"];
NSLog(@"取消播放领取 adForcePost = %@", data);
NSInteger result = [[data objectForKey:@"force"] integerValue];
if (result == 1) {
[weakSelf gainMultipleAward: sid];
}
NSLog(@"取消播放领取 adForcePost = %@", response);
// NSDictionary *data = [[response objectForKey:@"result"] objectForKey:@"data"];
} failure:^(NSError * _Nonnull error) {
}];
...
...
@@ -629,6 +630,9 @@ NSDictionary* appLaunchOpts;
NSDictionary *result = [[response objectForKey:@"result"] objectForKey:@"data"];
NSArray *rewardContentList = [result objectForKey:@"rewardContentList"];
if (rewardContentList){
return;
}
if (rewardContentList.count <= 0) {
return;
}
...
...
@@ -751,15 +755,6 @@ NSDictionary* appLaunchOpts;
[[IOSADManager shareADManager] requestVideoAD];
}];
NSString *status = [[CGUserManager shared].appSwitch[@"isopenH5"] stringValue];
NSLog(@"isopenH5 = %@", status);
if (![status isEqualToString:@"1"]) {
Data * data = [[Data alloc] init];
if([[data Read] objectForKey:@"refresh_token"] == nil) {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(launchAdSuccesShow) name:LaunchAdSuccesShow object:nil];
}
}
return YES;
}
...
...
@@ -816,14 +811,6 @@ NSDictionary* appLaunchOpts;
- (void)applicationWillTerminate:(UIApplication *)application {
[[[self ufw] appController] applicationWillTerminate: application]; }
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
return [WXApi handleOpenURL:url delegate:self];
}
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
return [WXApi handleOpenURL:url delegate:self];
}
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options{
return [WXApi handleOpenURL:url delegate:self];
}
...
...
GYDemo/GYDemo/Base.lproj/Main.storyboard
View file @
1b883c02
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"17156"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina
6_1
"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina
5_5
"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17125"
/>
...
...
@@ -14,14 +14,14 @@
<objects>
<viewController
storyboardIdentifier=
"GYLoginViewController"
useStoryboardIdentifierAsRestorationIdentifier=
"YES"
id=
"Ux2-xp-g9C"
customClass=
"GYLoginViewController"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"dYL-zr-8sU"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
89
6"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
73
6"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wechat_login_bg"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"UOH-Jk-9M5"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
89
6"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
73
6"
/>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"TWR-n9-3GS"
>
<rect
key=
"frame"
x=
"366"
y=
"
54
"
width=
"33"
height=
"32"
/>
<rect
key=
"frame"
x=
"366"
y=
"
10
"
width=
"33"
height=
"32"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<state
key=
"normal"
title=
"跳过"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
...
...
@@ -31,39 +31,39 @@
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7mW-as-1Ow"
>
<rect
key=
"frame"
x=
"366"
y=
"
80"
width=
"33"
height=
"0.5
"
/>
<rect
key=
"frame"
x=
"366"
y=
"
36"
width=
"33"
height=
"0.6666666666666643
"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"0.5"
id=
"WfN-fn-KKv"
/>
</constraints>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"kyj-A5-ZZN"
>
<rect
key=
"frame"
x=
"83.
5"
y=
"423.5"
width=
"247"
height=
"59.5
"
/>
<rect
key=
"frame"
x=
"83.
666666666666686"
y=
"338.33333333333331"
width=
"247"
height=
"59.666666666666686
"
/>
<state
key=
"normal"
image=
"wechat_login_btn_bg"
/>
<connections>
<action
selector=
"weichatLoginAction:"
destination=
"Ux2-xp-g9C"
eventType=
"touchUpInside"
id=
"igX-Hu-OSY"
/>
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"微信登录才能提现哦~"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"j4f-2W-n3v"
>
<rect
key=
"frame"
x=
"115.
5"
y=
"498"
width=
"183.5"
height=
"21.5
"
/>
<rect
key=
"frame"
x=
"115.
33333333333333"
y=
"413"
width=
"183.66666666666669"
height=
"21.666666666666686
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"18"
/>
<color
key=
"textColor"
red=
"0.70196078431372544"
green=
"0.23137254901960785"
blue=
"0.0039215686274509803"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wechat_login_logo_icon"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"iEN-Z8-WSa"
>
<rect
key=
"frame"
x=
"147.
5"
y=
"197"
width=
"119"
height=
"146.5
"
/>
<rect
key=
"frame"
x=
"147.
66666666666666"
y=
"111.66666666666667"
width=
"118.99999999999997"
height=
"146.66666666666663
"
/>
</imageView>
<stackView
opaque=
"NO"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"HN2-80-MUu"
>
<rect
key=
"frame"
x=
"78"
y=
"
823
"
width=
"258"
height=
"29"
/>
<rect
key=
"frame"
x=
"78"
y=
"
697
"
width=
"258"
height=
"29"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"登录即同意"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Whn-XS-fJg"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"71.
5
"
height=
"29"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"71.
666666666666671
"
height=
"29"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.49803921568627452"
green=
"0.28627450980392155"
blue=
"0.039215686274509803"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
tag=
"1000"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vcR-Dv-jn1"
>
<rect
key=
"frame"
x=
"71.
5
"
y=
"0.0"
width=
"86"
height=
"29"
/>
<rect
key=
"frame"
x=
"71.
666666666666657
"
y=
"0.0"
width=
"86"
height=
"29"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<state
key=
"normal"
title=
"《用户协议》"
>
<color
key=
"titleColor"
red=
"0.77254901960784317"
green=
"0.40392156862745099"
blue=
"0.074509803921568626"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
...
...
@@ -73,7 +73,7 @@
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"和"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ToV-NI-nOm"
>
<rect
key=
"frame"
x=
"157.
5"
y=
"0.0"
width=
"14.5
"
height=
"29"
/>
<rect
key=
"frame"
x=
"157.
66666666666666"
y=
"0.0"
width=
"14.333333333333343
"
height=
"29"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.49803921569999998"
green=
"0.28627450980000002"
blue=
"0.039215686270000001"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -125,8 +125,8 @@
</scenes>
<resources>
<image
name=
"wechat_login_bg"
width=
"375"
height=
"667"
/>
<image
name=
"wechat_login_btn_bg"
width=
"247"
height=
"59.
5
"
/>
<image
name=
"wechat_login_logo_icon"
width=
"119"
height=
"146.
5
"
/>
<image
name=
"wechat_login_btn_bg"
width=
"247"
height=
"59.
666667938232422
"
/>
<image
name=
"wechat_login_logo_icon"
width=
"119"
height=
"146.
66667175292969
"
/>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
...
...
GYDemo/GYDemo/Network/CGNetworkTools.m
View file @
1b883c02
...
...
@@ -361,7 +361,8 @@ static CGNetworkTools* _tools = nil;
if
([[
data
Read
]
objectForKey
:
@"source"
])
{
[
dict
setValue
:
[[
data
Read
]
objectForKey
:
@"source"
]
forKey
:
@"source"
];
}
[
dict
setValue
:
[[
data
Read
]
objectForKey
:
@"common"
]
forKey
:
@"source"
];
NSString
*
uid
=
[[
data
Read
]
objectForKey
:
@"uid"
];
if
(
uid
!=
nil
)
{
[
dict
setValue
:
uid
forKey
:
@"uid"
];
}
// token
...
...
GYDemo/GYDemo/ViewController/GYLoginViewController.m
View file @
1b883c02
...
...
@@ -50,6 +50,12 @@
/// 微信登录
-
(
IBAction
)
weichatLoginAction
:
(
UIButton
*
)
sender
{
if
([
WXApi
isWXAppInstalled
])
{
[
MBProgressHUD
showError
:
@"请先安装微信"
];
return
;
}
Data
*
data
=
[[
Data
alloc
]
init
];
if
([[
data
Read
]
objectForKey
:
@"refresh_token"
]){
[
self
WXLoginOauth
:
nil
];
...
...
GYDemo/GYDemo/ViewController/GYNative.storyboard
View file @
1b883c02
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"17156"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina
6_1
"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina
5_5
"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17125"
/>
...
...
@@ -14,30 +14,30 @@
<objects>
<viewController
storyboardIdentifier=
"GYWheelSurfViewController"
id=
"Drb-cr-bUK"
customClass=
"GYWheelSurfViewController"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"5cp-x3-OlF"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
89
6"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
73
6"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wheel_bg"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"3rc-d1-RrT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
89
6"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
73
6"
/>
</imageView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"hLq-Ma-mq9"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
89
6"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
73
6"
/>
<color
key=
"backgroundColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"0.90000000000000002"
colorSpace=
"custom"
customColorSpace=
"calibratedRGB"
/>
</view>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wheel_header"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"6EY-ph-2hw"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
64
"
width=
"414"
height=
"89"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
20
"
width=
"414"
height=
"89"
/>
</imageView>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"center"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wheel_corona"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Tzj-np-8e2"
>
<rect
key=
"frame"
x=
"0.0"
y=
"1
58
"
width=
"414"
height=
"414"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"1
14
"
width=
"414"
height=
"414"
/>
<constraints>
<constraint
firstAttribute=
"width"
secondItem=
"Tzj-np-8e2"
secondAttribute=
"height"
id=
"Heq-lJ-5Ub"
/>
</constraints>
</imageView>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wheel_point_select"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Pr8-br-4g4"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
305.5"
width=
"414"
height=
"99.5
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
261.33333333333331"
width=
"414"
height=
"99.333333333333314
"
/>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"422-i1-mAf"
>
<rect
key=
"frame"
x=
"354"
y=
"1
68
"
width=
"50"
height=
"50"
/>
<rect
key=
"frame"
x=
"354"
y=
"1
24
"
width=
"50"
height=
"50"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"50"
id=
"EBy-Vi-rfy"
/>
<constraint
firstAttribute=
"height"
constant=
"50"
id=
"wzv-AB-bdC"
/>
...
...
@@ -48,7 +48,7 @@
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"t4G-Kb-nWs"
>
<rect
key=
"frame"
x=
"95"
y=
"
622"
width=
"224"
height=
"58.5
"
/>
<rect
key=
"frame"
x=
"95"
y=
"
578"
width=
"224"
height=
"58.666666666666629
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<inset
key=
"titleEdgeInsets"
minX=
"0.0"
minY=
"24"
maxX=
"0.0"
maxY=
"0.0"
/>
<state
key=
"normal"
backgroundImage=
"wheel_btn_free"
/>
...
...
@@ -57,13 +57,13 @@
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"每日12:00 18:00 21:00 00:00重置"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"UOe-3b-Yfa"
>
<rect
key=
"frame"
x=
"7
9"
y=
"592"
width=
"256.5
"
height=
"21"
/>
<rect
key=
"frame"
x=
"7
8.666666666666657"
y=
"548"
width=
"256.66666666666674
"
height=
"21"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"剩余次数:10"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"B36-KL-4fe"
>
<rect
key=
"frame"
x=
"154.
5"
y=
"708.5"
width=
"105
"
height=
"21"
/>
<rect
key=
"frame"
x=
"154.
66666666666666"
y=
"664.66666666666663"
width=
"104.99999999999997
"
height=
"21"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -116,7 +116,7 @@
<objects>
<viewController
storyboardIdentifier=
"GYSignInViewController"
id=
"9ui-hs-m4D"
customClass=
"GYSignInViewController"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"j36-MF-xdT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
89
6"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
73
6"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"PyE-zG-ecH"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
...
...
@@ -131,11 +131,11 @@
<objects>
<viewController
storyboardIdentifier=
"GYSettingViewController"
id=
"grV-2p-joq"
customClass=
"GYSettingViewController"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"Knq-Oa-PDh"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
89
6"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
73
6"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"pqK-fB-nLl"
>
<rect
key=
"frame"
x=
"14"
y=
"
56
"
width=
"386"
height=
"507"
/>
<rect
key=
"frame"
x=
"14"
y=
"
12
"
width=
"386"
height=
"507"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"507"
id=
"8sa-XN-iC8"
/>
...
...
@@ -148,7 +148,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"386"
height=
"60"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"n4v-TL-ecs"
>
<rect
key=
"frame"
x=
"13"
y=
"19.
5"
width=
"42"
height=
"21
"
/>
<rect
key=
"frame"
x=
"13"
y=
"19.
666666666666668"
width=
"42"
height=
"21.000000000000004
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.42745098040000001"
green=
"0.30980392159999998"
blue=
"0.19215686269999999"
alpha=
"0.84705882349999995"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -212,7 +212,7 @@
</constraints>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bJM-nU-QaR"
>
<rect
key=
"frame"
x=
"13"
y=
"44.
5"
width=
"40"
height=
"20
"
/>
<rect
key=
"frame"
x=
"13"
y=
"44.
666666666666664"
width=
"40"
height=
"19.999999999999993
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<color
key=
"textColor"
red=
"0.42745098040000001"
green=
"0.30980392159999998"
blue=
"0.19215686269999999"
alpha=
"0.84705882349999995"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -272,11 +272,11 @@
<image
name=
"setting_copy"
width=
"70"
height=
"28"
/>
<image
name=
"setting_underLine"
width=
"307"
height=
"2"
/>
<image
name=
"wheel_bg"
width=
"375"
height=
"667"
/>
<image
name=
"wheel_btn_free"
width=
"224"
height=
"58.
5
"
/>
<image
name=
"wheel_cancel"
width=
"38.
5
"
height=
"38"
/>
<image
name=
"wheel_btn_free"
width=
"224"
height=
"58.
666667938232422
"
/>
<image
name=
"wheel_cancel"
width=
"38.
666667938232422
"
height=
"38"
/>
<image
name=
"wheel_corona"
width=
"341"
height=
"341"
/>
<image
name=
"wheel_header"
width=
"203.
5
"
height=
"89"
/>
<image
name=
"wheel_point_select"
width=
"72"
height=
"99.
5
"
/>
<image
name=
"wheel_header"
width=
"203.
66667175292969
"
height=
"89"
/>
<image
name=
"wheel_point_select"
width=
"72"
height=
"99.
666664123535156
"
/>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
...
...
farm.xcworkspace/xcuserdata/mazy.xcuserdatad/IDEFindNavigatorScopes.plist
0 → 100644
View file @
1b883c02
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
a
rr
a
y/
>
<
/plist
>
farm.xcworkspace/xcuserdata/mazy.xcuserdatad/UserInterfaceState.xcuserstate
View file @
1b883c02
No preview for this file type
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