Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ios1x
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
ios1x
Commits
c5d6da09
Commit
c5d6da09
authored
Jul 26, 2017
by
lee
Browse files
Options
Browse Files
Download
Plain Diff
Mt pusherge branch 'master' of git.oschina.net:kollway-kollway/newcemarose
parents
b12ef85b
68c2876c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
KWMClothingSetsHeader.xib
iCemarose/Class/UI/NewHome/Cell/KWMClothingSetsHeader.xib
+3
-3
KWMNewHomeVC.m
iCemarose/Class/UI/NewHome/KWMNewHomeVC.m
+10
-5
No files found.
iCemarose/Class/UI/NewHome/Cell/KWMClothingSetsHeader.xib
View file @
c5d6da09
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"12089"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"12089"
/>
<capability
name=
"Aspect ratio constraints"
minToolsVersion=
"5.1"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<objects>
<objects>
...
@@ -24,7 +25,7 @@
...
@@ -24,7 +25,7 @@
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"nBP-0Q-eKB"
userLabel=
"推荐搭配title view"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"nBP-0Q-eKB"
userLabel=
"推荐搭配title view"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"190"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"190"
/>
<subviews>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"
center"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"test_suit
"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Xzr-zM-E25"
>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"
scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251
"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Xzr-zM-E25"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"190"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"190"
/>
</imageView>
</imageView>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"ic_triangle"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"LvJ-FP-Yc1"
>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"ic_triangle"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"LvJ-FP-Yc1"
>
...
@@ -40,7 +41,7 @@
...
@@ -40,7 +41,7 @@
<constraint
firstItem=
"Xzr-zM-E25"
firstAttribute=
"top"
secondItem=
"nBP-0Q-eKB"
secondAttribute=
"top"
id=
"4oD-P2-9Xz"
/>
<constraint
firstItem=
"Xzr-zM-E25"
firstAttribute=
"top"
secondItem=
"nBP-0Q-eKB"
secondAttribute=
"top"
id=
"4oD-P2-9Xz"
/>
<constraint
firstItem=
"Xzr-zM-E25"
firstAttribute=
"leading"
secondItem=
"nBP-0Q-eKB"
secondAttribute=
"leading"
id=
"Fci-xu-TIa"
/>
<constraint
firstItem=
"Xzr-zM-E25"
firstAttribute=
"leading"
secondItem=
"nBP-0Q-eKB"
secondAttribute=
"leading"
id=
"Fci-xu-TIa"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"LvJ-FP-Yc1"
secondAttribute=
"bottom"
constant=
"-1"
id=
"SAq-Iw-I6t"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"LvJ-FP-Yc1"
secondAttribute=
"bottom"
constant=
"-1"
id=
"SAq-Iw-I6t"
/>
<constraint
firstAttribute=
"
height"
constant=
"190"
id=
"Ssh-cP-PRt
"
/>
<constraint
firstAttribute=
"
width"
secondItem=
"nBP-0Q-eKB"
secondAttribute=
"height"
multiplier=
"375:190"
id=
"Tke-yY-EUY
"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Xzr-zM-E25"
secondAttribute=
"bottom"
id=
"UhQ-tF-lG6"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Xzr-zM-E25"
secondAttribute=
"bottom"
id=
"UhQ-tF-lG6"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Xzr-zM-E25"
secondAttribute=
"trailing"
id=
"dj0-cH-YiI"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Xzr-zM-E25"
secondAttribute=
"trailing"
id=
"dj0-cH-YiI"
/>
<constraint
firstItem=
"LvJ-FP-Yc1"
firstAttribute=
"centerX"
secondItem=
"nBP-0Q-eKB"
secondAttribute=
"centerX"
id=
"yqu-ba-mQR"
/>
<constraint
firstItem=
"LvJ-FP-Yc1"
firstAttribute=
"centerX"
secondItem=
"nBP-0Q-eKB"
secondAttribute=
"centerX"
id=
"yqu-ba-mQR"
/>
...
@@ -86,6 +87,5 @@
...
@@ -86,6 +87,5 @@
</objects>
</objects>
<resources>
<resources>
<image
name=
"ic_triangle"
width=
"21"
height=
"11"
/>
<image
name=
"ic_triangle"
width=
"21"
height=
"11"
/>
<image
name=
"test_suit"
width=
"375"
height=
"212"
/>
</resources>
</resources>
</document>
</document>
iCemarose/Class/UI/NewHome/KWMNewHomeVC.m
View file @
c5d6da09
...
@@ -63,7 +63,10 @@ typedef enum{
...
@@ -63,7 +63,10 @@ typedef enum{
@end
@end
@implementation
KWMNewHomeVC
@implementation
KWMNewHomeVC
{
CGFloat
heightAdHeader
;
CGFloat
heightClothingSets
;
}
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
...
@@ -104,10 +107,12 @@ typedef enum{
...
@@ -104,10 +107,12 @@ typedef enum{
-
(
void
)
initView
{
-
(
void
)
initView
{
// self.title = @"首页";
// self.title = @"首页";
self
.
adHeader
=
[[
KWMAdHeader
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
UI_SCREEN_WIDTH
,
275
)];
heightAdHeader
=
UI_SCREEN_WIDTH
*
275
/
375
;
heightClothingSets
=
UI_SCREEN_WIDTH
*
190
/
375
+
127
;
//127为图片外的布局高度
self
.
adHeader
=
[[
KWMAdHeader
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
UI_SCREEN_WIDTH
,
heightAdHeader
)];
self
.
menuHeader
=
[[
KWMMenuHeader
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
UI_SCREEN_WIDTH
,
100
)];
self
.
menuHeader
=
[[
KWMMenuHeader
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
UI_SCREEN_WIDTH
,
100
)];
self
.
recommendHeader
=
[[
KWMRecommendHeader
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
UI_SCREEN_WIDTH
,
230
)];
self
.
recommendHeader
=
[[
KWMRecommendHeader
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
UI_SCREEN_WIDTH
,
230
)];
self
.
clothingSetsHeader
=
[[
KWMClothingSetsHeader
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
UI_SCREEN_WIDTH
,
317
)];
self
.
clothingSetsHeader
=
[[
KWMClothingSetsHeader
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
UI_SCREEN_WIDTH
,
heightClothingSets
)];
self
.
hotSalesHeader
=
[[
KWMHotSalesHeader
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
UI_SCREEN_WIDTH
,
250
)];
self
.
hotSalesHeader
=
[[
KWMHotSalesHeader
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
UI_SCREEN_WIDTH
,
250
)];
self
.
adHeader
.
delegate
=
self
;
self
.
adHeader
.
delegate
=
self
;
...
@@ -264,7 +269,7 @@ typedef enum{
...
@@ -264,7 +269,7 @@ typedef enum{
NSInteger
height
=
0
;
NSInteger
height
=
0
;
switch
(
section
)
{
switch
(
section
)
{
case
HeaderAd
:
case
HeaderAd
:
height
=
275
;
height
=
heightAdHeader
;
break
;
break
;
case
HeaderMenu
:
case
HeaderMenu
:
height
=
100
;
height
=
100
;
...
@@ -273,7 +278,7 @@ typedef enum{
...
@@ -273,7 +278,7 @@ typedef enum{
height
=
230
;
height
=
230
;
break
;
break
;
case
HeaderClothingSets
:
case
HeaderClothingSets
:
height
=
317
;
height
=
heightClothingSets
;
break
;
break
;
case
HeaderHotSales
:
case
HeaderHotSales
:
height
=
self
.
hotSalesHeader
.
actrualHeight
;
height
=
self
.
hotSalesHeader
.
actrualHeight
;
...
...
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