Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Opple-iOS
Commits
61bfff8b
Commit
61bfff8b
authored
Dec 16, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:优化代码
parent
205cbfab
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
60 deletions
+80
-60
OnlineLearningDetailViewController.m
...enter/OnlineLearning/OnlineLearningDetailViewController.m
+19
-9
VideoHelperViewController.m
...LearningCenter/OnlineLearning/VideoHelperViewController.m
+8
-1
OrderdetailsViewController.m
Class/OrderdetailsViewController.m
+0
-5
LearningCenter.storyboard
Lighting/LearningCenter.storyboard
+43
-43
BaseViewController.m
Tools/BaseViewController.m
+10
-2
No files found.
Class/LearningCenter/OnlineLearning/OnlineLearningDetailViewController.m
View file @
61bfff8b
...
...
@@ -61,20 +61,17 @@
{
//播放窗口
VideoHelperViewController
*
videoWindow
=
[[[
self
class
]
getLearningCenterStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"VideoHelperViewController"
];
videoWindow
.
view
.
frame
=
CGRectMake
(
0
,
NavigationHeight
,
ScreenWidth
*
2
/
3
,
ScreenHeight
/
2
);
videoWindow
.
delegate
=
self
;
[
self
addChildViewController
:
videoWindow
];
[
self
.
view
addSubview
:
videoWindow
.
view
];
//播放列表
VideoListViewController
*
playList
=
[[[
self
class
]
getLearningCenterStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"VideoListViewController"
];
playList
.
view
.
frame
=
CGRectMake
(
ScreenWidth
*
2
/
3
+
5
,
NavigationHeight
,
ScreenWidth
/
3
-
5
,
ScreenHeight
-
64
);
playList
.
studyItemTitleLabel
.
text
=
self
.
studyTypeEntity
.
name
;
playList
.
delegate
=
self
;
[
self
addChildViewController
:
playList
];
[
self
.
view
addSubview
:
playList
.
view
];
//播放简介
VideoDetailViewController
*
playDetail
=
[[[
self
class
]
getLearningCenterStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"VideoDetailViewController"
];
playDetail
.
view
.
frame
=
CGRectMake
(
0
,
ScreenHeight
/
2
+
NavigationHeight
,
ScreenWidth
*
2
/
3
,
ScreenHeight
/
2
-
NavigationHeight
);
[
self
addChildViewController
:
playDetail
];
[
self
.
view
addSubview
:
playDetail
.
view
];
__block
VideoHelperViewController
*
weakVideWindow
=
videoWindow
;
...
...
@@ -82,7 +79,7 @@
WS
(
weakSelf
);
[
videoWindow
setZoomButtonClickBlock
:
^
(
BOOL
boolValue
)
{
if
(
boolValue
)
{
[
weakSelf
.
view
.
window
addSubview
:
weakVideWindow
.
view
];
[
SHARED_APPDELEGATE
.
window
addSubview
:
weakVideWindow
.
view
];
[
UIView
animateWithDuration
:
0
.
2
animations
:
^
{
weakVideWindow
.
view
.
frame
=
[
UIScreen
mainScreen
].
bounds
;
weakVideWindow
.
playerLayer
.
frame
=
[
UIScreen
mainScreen
].
bounds
;
...
...
@@ -95,8 +92,12 @@
}
completion
:
nil
];
}
}];
videoWindow
.
view
.
frame
=
CGRectMake
(
0
,
NavigationHeight
,
ScreenWidth
*
2
/
3
,
ScreenHeight
/
2
);
playList
.
view
.
frame
=
CGRectMake
(
ScreenWidth
*
2
/
3
+
5
,
NavigationHeight
,
ScreenWidth
/
3
-
5
,
ScreenHeight
-
64
);
playDetail
.
view
.
frame
=
CGRectMake
(
0
,
ScreenHeight
/
2
+
NavigationHeight
,
ScreenWidth
*
2
/
3
,
ScreenHeight
/
2
-
NavigationHeight
);
}
#pragma mark - 获取学习项详情
-
(
void
)
getStudyItemDetailAction
{
...
...
@@ -165,11 +166,20 @@
-
(
void
)
beginAssessment
:
(
CustomStudyEntity
*
)
studyEntity
{
WS
(
weakSelf
);
[
self
.
settingsPopoverController
dismissPopoverAnimated
:
YES
completion
:
^
{
AssessmentViewController
*
assessmentVc
=
[[[
self
class
]
getLearningCenterStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"AssessmentViewController"
];
assessmentVc
.
taskId
=
studyEntity
.
fid
;
[
weakSelf
.
navigationController
pushViewController
:
assessmentVc
animated
:
YES
];
}];
VideoHelperViewController
*
videoWindow
=
self
.
childViewControllers
[
0
];
if
(
videoWindow
.
view
.
height
==
ScreenHeight
)
{
[
self
.
view
insertSubview
:
videoWindow
.
view
atIndex
:
0
];
[
UIView
animateWithDuration
:
0
.
2
animations
:
^
{
videoWindow
.
view
.
frame
=
CGRectMake
(
0
,
NavigationHeight
,
ScreenWidth
*
2
/
3
,
ScreenHeight
/
2
);
videoWindow
.
playerLayer
.
frame
=
CGRectMake
(
0
,
0
,
ScreenWidth
*
2
/
3
,
ScreenHeight
/
2
);
}
completion
:^
(
BOOL
finished
)
{
[
self
.
settingsPopoverController
dismissPopoverAnimated
:
YES
completion
:
^
{
AssessmentViewController
*
assessmentVc
=
[[[
self
class
]
getLearningCenterStoryboardClass
]
instantiateViewControllerWithIdentifier
:
@"AssessmentViewController"
];
assessmentVc
.
taskId
=
studyEntity
.
fid
;
[
weakSelf
.
navigationController
pushViewController
:
assessmentVc
animated
:
YES
];
}];
}];
}
}
#pragma mark - 赋值
...
...
Class/LearningCenter/OnlineLearning/VideoHelperViewController.m
View file @
61bfff8b
...
...
@@ -204,7 +204,14 @@
#pragma mark - 退出播放
-
(
IBAction
)
exitPlayControllerButtonClick
:
(
UIButton
*
)
sender
{
[
self
.
customPlayer
pause
];
[
self
.
navigationController
popViewControllerAnimated
:
YES
];
self
.
playButton
.
selected
=
NO
;
if
(
self
.
playerLayer
.
frame
.
size
.
height
==
ScreenHeight
)
{
if
(
self
.
zoomButtonClickBlock
)
{
self
.
zoomButtonClickBlock
(
NO
);
}
}
else
{
[
self
.
navigationController
popViewControllerAnimated
:
YES
];
}
}
#pragma mark - 后退5秒
...
...
Class/OrderdetailsViewController.m
View file @
61bfff8b
...
...
@@ -1063,11 +1063,6 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
return
self
.
PDFpath
;
}
-
(
BOOL
)
prefersStatusBarHidden
{
return
YES
;
}
#pragma mark - 分享订单
-
(
void
)
ShareButtonClick
:
(
UIButton
*
)
sender
{
...
...
Lighting/LearningCenter.storyboard
View file @
61bfff8b
...
...
@@ -15,7 +15,7 @@
<viewControllerLayoutGuide
type=
"bottom"
id=
"gMz-Po-9Yg"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"cdH-ZG-5G3"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"Studybackground"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"AOj-Fj-d3g"
/>
...
...
@@ -222,17 +222,17 @@
<viewControllerLayoutGuide
type=
"bottom"
id=
"lL2-ja-VxT"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"FsK-t2-M2J"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"90"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ogf-Th-qTY"
>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"calibratedWhite"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
selectionStyle=
"none"
accessoryType=
"disclosureIndicator"
indentationWidth=
"10"
reuseIdentifier=
"ForumTableViewCell"
rowHeight=
"90"
id=
"gz9-gD-P6A"
customClass=
"ForumTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"
768
"
height=
"90"
/>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
accessoryType=
"disclosureIndicator"
indentationWidth=
"10"
reuseIdentifier=
"ForumTableViewCell"
rowHeight=
"90"
id=
"gz9-gD-P6A"
customClass=
"ForumTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"
1024
"
height=
"90"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"gz9-gD-P6A"
id=
"4lI-td-FE0"
>
<frame
key=
"frameInset"
width=
"
702
"
height=
"89"
/>
<frame
key=
"frameInset"
width=
"
830
"
height=
"89"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"00登录-谭"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tIu-Ox-DXo"
>
...
...
@@ -304,7 +304,7 @@
<viewControllerLayoutGuide
type=
"bottom"
id=
"M8C-8Z-W12"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"9tL-ZM-Vv5"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"Recruitbackground"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"0NY-ad-nEt"
/>
...
...
@@ -375,7 +375,7 @@
<viewControllerLayoutGuide
type=
"bottom"
id=
"pEO-5p-FL8"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"YAu-aF-uAr"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Wup-l7-BBP"
>
...
...
@@ -429,10 +429,10 @@
<color
key=
"backgroundColor"
red=
"0.92941176470588238"
green=
"0.93333333333333335"
blue=
"0.93725490196078431"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"ForumItemTableViewCell"
rowHeight=
"253"
id=
"KPa-ue-ynj"
customClass=
"ForumItemTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"
768
"
height=
"253"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"
1024
"
height=
"253"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KPa-ue-ynj"
id=
"fqg-6x-xYw"
>
<frame
key=
"frameInset"
width=
"
768
"
height=
"253"
/>
<frame
key=
"frameInset"
width=
"
1024
"
height=
"253"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"5V0-oc-2jO"
>
...
...
@@ -720,7 +720,7 @@
<viewControllerLayoutGuide
type=
"bottom"
id=
"dsh-Qt-soH"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"1Rf-fP-JqP"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"LsZ-78-vCP"
>
...
...
@@ -767,10 +767,10 @@
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"HeadlineTableViewCell"
id=
"RwU-Te-fXY"
customClass=
"HeadlineTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"
768
"
height=
"44"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"
1024
"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"RwU-Te-fXY"
id=
"GcB-7X-Q0o"
>
<frame
key=
"frameInset"
width=
"
768
"
height=
"44"
/>
<frame
key=
"frameInset"
width=
"
1024
"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"标题"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"QwA-Ps-okZ"
>
...
...
@@ -782,7 +782,7 @@
<textInputTraits
key=
"textInputTraits"
/>
</textField>
<view
contentMode=
"scaleToFill"
fixedFrame=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"c9g-Ak-U7E"
>
<frame
key=
"frameInset"
minX=
"-
2.5"
height=
"1"
maxX=
"2.5"
maxY=
"1
.5"
/>
<frame
key=
"frameInset"
minX=
"-
6"
maxX=
"3"
maxY=
"5
.5"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMinY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.92941176470588238"
green=
"0.93333333333333335"
blue=
"0.93725490196078431"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
...
...
@@ -798,10 +798,10 @@
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"ContentTableViewCell"
rowHeight=
"170"
id=
"bcJ-bt-ka6"
customClass=
"ContentTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"72"
width=
"
768
"
height=
"170"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"72"
width=
"
1024
"
height=
"170"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"bcJ-bt-ka6"
id=
"uXN-gY-mO0"
>
<frame
key=
"frameInset"
width=
"
768
"
height=
"170"
/>
<frame
key=
"frameInset"
width=
"
1024
"
height=
"170"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<textView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
text=
"内容"
textAlignment=
"natural"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"3Uo-E9-3r0"
>
...
...
@@ -996,7 +996,7 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<viewControllerLayoutGuide
type=
"bottom"
id=
"56O-Us-h9l"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"iZG-0h-Izx"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<collectionView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
dataMode=
"prototypes"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Hbj-9Y-heh"
>
...
...
@@ -1076,7 +1076,7 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<viewControllerLayoutGuide
type=
"bottom"
id=
"AVm-wa-VfG"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"1f3-C5-Ums"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XJQ-gn-ueE"
>
...
...
@@ -1206,7 +1206,7 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<viewControllerLayoutGuide
type=
"bottom"
id=
"D0s-xf-mF6"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"zkB-TM-8aD"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.92941176470588238"
green=
"0.93333333333333335"
blue=
"0.93725490196078431"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
...
...
@@ -1224,17 +1224,17 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<viewControllerLayoutGuide
type=
"bottom"
id=
"STN-51-MZ2"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"euD-lu-EZ9"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"70"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"lXY-sE-fW1"
>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"VideoDetailIntroTableViewCell"
rowHeight=
"100"
id=
"Qnm-0r-wEL"
customClass=
"VideoDetailIntroTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"
768
"
height=
"100"
/>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"VideoDetailIntroTableViewCell"
rowHeight=
"100"
id=
"Qnm-0r-wEL"
customClass=
"VideoDetailIntroTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"
1024
"
height=
"100"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"Qnm-0r-wEL"
id=
"VAA-bT-OlF"
>
<frame
key=
"frameInset"
width=
"
768
"
height=
"99"
/>
<frame
key=
"frameInset"
width=
"
1024
"
height=
"99"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"课时简介"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"agZ-rF-DnB"
>
...
...
@@ -1261,11 +1261,11 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<outlet
property=
"studyIntroDetailTitleLabel"
destination=
"pIM-cg-VXA"
id=
"qhO-cv-4Hn"
/>
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"VideoLecturerTableViewCell"
rowHeight=
"130"
id=
"WzB-nZ-wsW"
customClass=
"VideoLecturerTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"128"
width=
"
768
"
height=
"130"
/>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"VideoLecturerTableViewCell"
rowHeight=
"130"
id=
"WzB-nZ-wsW"
customClass=
"VideoLecturerTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"128"
width=
"
1024
"
height=
"130"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"WzB-nZ-wsW"
id=
"Zzv-Yi-ZxT"
>
<frame
key=
"frameInset"
width=
"
768
"
height=
"129"
/>
<frame
key=
"frameInset"
width=
"
1024
"
height=
"129"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"授课讲师"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"kxK-dX-OAf"
>
...
...
@@ -1315,11 +1315,11 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<outlet
property=
"lecurerIntroLabel"
destination=
"85S-CZ-3Vl"
id=
"LLr-eD-OYY"
/>
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"SpecifiedTableViewCell"
rowHeight=
"100"
id=
"oia-jO-L9n"
customClass=
"SpecifiedTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"258"
width=
"
768
"
height=
"100"
/>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"SpecifiedTableViewCell"
rowHeight=
"100"
id=
"oia-jO-L9n"
customClass=
"SpecifiedTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"258"
width=
"
1024
"
height=
"100"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"oia-jO-L9n"
id=
"AMF-ag-ZWN"
>
<frame
key=
"frameInset"
width=
"
768
"
height=
"99"
/>
<frame
key=
"frameInset"
width=
"
1024
"
height=
"99"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
text=
"针对人员"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"NfI-IM-h1i"
>
...
...
@@ -1490,7 +1490,7 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"44"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"n7q-60-s3U"
>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<view
key=
"tableHeaderView"
contentMode=
"scaleToFill"
id=
"p9i-EO-Sx0"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
0.
0"
height=
"60"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
50
0"
height=
"60"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"王牌销售"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"DNW-by-H8X"
>
...
...
@@ -1658,7 +1658,7 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<viewControllerLayoutGuide
type=
"bottom"
id=
"yxQ-UK-Q3D"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"uDa-Mh-ebN"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ZY0-DP-xQk"
>
...
...
@@ -1693,11 +1693,11 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"grouped"
separatorStyle=
"none"
rowHeight=
"81"
sectionHeaderHeight=
"18"
sectionFooterHeight=
"18"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XRP-My-vMh"
>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"AssessmentHeaderView"
rowHeight=
"60"
id=
"2M5-To-MLj"
customClass=
"AssessmentHeaderView"
>
<rect
key=
"frame"
x=
"0.0"
y=
"56"
width=
"
768
"
height=
"60"
/>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"AssessmentHeaderView"
rowHeight=
"60"
id=
"2M5-To-MLj"
customClass=
"AssessmentHeaderView"
>
<rect
key=
"frame"
x=
"0.0"
y=
"56"
width=
"
1024
"
height=
"60"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"2M5-To-MLj"
id=
"ypf-GL-4CP"
>
<frame
key=
"frameInset"
width=
"
768
"
height=
"60"
/>
<frame
key=
"frameInset"
width=
"
1024
"
height=
"60"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"1、(20分)opple新品发布____ [多选]"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"RBj-Qh-HCD"
>
...
...
@@ -1718,11 +1718,11 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<outlet
property=
"titleLabel"
destination=
"RBj-Qh-HCD"
id=
"uH0-fJ-SI2"
/>
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"AssessmentTableViewCell"
rowHeight=
"50"
id=
"BjI-a1-CRm"
customClass=
"AssessmentTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"116"
width=
"
768
"
height=
"50"
/>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"AssessmentTableViewCell"
rowHeight=
"50"
id=
"BjI-a1-CRm"
customClass=
"AssessmentTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"116"
width=
"
1024
"
height=
"50"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"BjI-a1-CRm"
id=
"bq8-ly-DcD"
>
<frame
key=
"frameInset"
width=
"
768
"
height=
"50"
/>
<frame
key=
"frameInset"
width=
"
1024
"
height=
"50"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"MzG-Lg-eSA"
>
...
...
@@ -1818,7 +1818,7 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<viewControllerLayoutGuide
type=
"bottom"
id=
"AC6-es-fcm"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"Irb-dN-uKr"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<collectionView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
dataMode=
"prototypes"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"3Pc-tn-xb9"
>
...
...
@@ -1949,13 +1949,13 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<viewControllerLayoutGuide
type=
"bottom"
id=
"f5L-3o-b9m"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"ZYe-68-bYv"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"118"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"TVZ-eo-sh6"
>
<color
key=
"backgroundColor"
red=
"0.96078431372549022"
green=
"0.97647058823529409"
blue=
"0.98039215686274506"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<view
key=
"tableHeaderView"
contentMode=
"scaleToFill"
id=
"sYW-Jc-Fde"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
536
"
height=
"0.0"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024
"
height=
"0.0"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"00登录-谭"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"v3R-bc-vx5"
>
...
...
@@ -2008,10 +2008,10 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
</view>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"CommentListTableViewCell"
rowHeight=
"84"
id=
"sX2-jy-tQ2"
customClass=
"CommentListTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"
768
"
height=
"84"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"
1024
"
height=
"84"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"sX2-jy-tQ2"
id=
"iVT-bi-RKr"
>
<frame
key=
"frameInset"
width=
"
768
"
height=
"83"
/>
<frame
key=
"frameInset"
width=
"
1024
"
height=
"83"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"crown"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"pyu-Y7-w8M"
>
...
...
@@ -2184,7 +2184,7 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
<viewControllerLayoutGuide
type=
"bottom"
id=
"qWt-o1-N8Q"
/>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"aJe-X6-Cbk"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
768"
height=
"1024
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
1024"
height=
"768
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<collectionView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
scrollEnabled=
"NO"
dataMode=
"prototypes"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"exy-74-AKq"
>
...
...
@@ -2281,7 +2281,7 @@ timingFunction 设置动画速度曲线,默认值上面已经给出.下面说它
</resources>
<simulatedMetricsContainer
key=
"defaultSimulatedMetrics"
>
<simulatedStatusBarMetrics
key=
"statusBar"
/>
<simulatedOrientationMetrics
key=
"orientation"
/>
<simulatedOrientationMetrics
key=
"orientation"
orientation=
"landscapeRight"
/>
<simulatedScreenMetrics
key=
"destination"
/>
</simulatedMetricsContainer>
</document>
Tools/BaseViewController.m
View file @
61bfff8b
...
...
@@ -48,7 +48,6 @@
-
(
WKWebView
*
)
webView
{
if
(
_webView
==
nil
)
{
_webView
=
[[
WKWebView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenWidth
,
ScreenHeight
)];
}
return
_webView
;
...
...
@@ -59,11 +58,20 @@
[
super
viewDidLoad
];
self
.
automaticallyAdjustsScrollViewInsets
=
NO
;
self
.
navigationController
.
navigationBar
.
translucent
=
NO
;
self
.
navigationController
.
navigationBarHidden
=
YES
;
if
([
self
respondsToSelector
:
@selector
(
setNeedsStatusBarAppearanceUpdate
)])
{
[
self
prefersStatusBarHidden
];
}
//检测登陆超时通知
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
logintimeoutNotification
:
)
name
:
LOGINTIMEOUT
object
:
nil
];
}
#pragma mark - 隐藏状态栏
-
(
BOOL
)
prefersStatusBarHidden
{
return
YES
;
}
#pragma mark -登陆超时回调
-
(
void
)
logintimeoutNotification
:
(
NSNotification
*
)
not
...
...
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