Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
colorfulSchoolReconsitution
Project
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
2
Merge Requests
2
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
刘卓鑫
colorfulSchoolReconsitution
Commits
d51796be
Commit
d51796be
authored
Jun 14, 2019
by
刘卓鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
7f6720e0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
146 additions
and
0 deletions
+146
-0
IDEFindNavigatorScopes.plist
...rdata/liuzhuoxin.xcuserdatad/IDEFindNavigatorScopes.plist
+5
-0
Old_UserInfoViewController.temp_caseinsensitive_rename.xib
...ld_UserInfoViewController.temp_caseinsensitive_rename.xib
+0
-0
ZXBDSteamTableViewCell.h
...Classes/NewFirstPage(新版首页)/Views/ZXBDSteamTableViewCell.h
+22
-0
ZXBDSteamTableViewCell.m
...Classes/NewFirstPage(新版首页)/Views/ZXBDSteamTableViewCell.m
+119
-0
No files found.
ColorfulSchool/ColorfulSchool.xcworkspace/xcuserdata/liuzhuoxin.xcuserdatad/IDEFindNavigatorScopes.plist
0 → 100644
View file @
d51796be
<
?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
>
ColorfulSchool/ColorfulSchool/Classes/MineView(个人中心)/UserInfo/Controller/Old_UserInfoViewController.temp_caseinsensitive_rename.xib
0 → 100644
View file @
d51796be
This diff is collapsed.
Click to expand it.
ColorfulSchool/ColorfulSchool/Classes/NewFirstPage(新版首页)/Views/ZXBDSteamTableViewCell.h
0 → 100644
View file @
d51796be
//
//
// ZXBDSteamTableViewCell.h
// ColorfulSchool
//
// Created by 刘卓鑫 on 2019/5/28.
// Copyright © 2019 Colorful Any Door. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface
ZXBDSteamTableViewCell
:
UITableViewCell
@property
(
nonatomic
,
weak
)
UIViewController
*
fromVc
;
@property
(
nonatomic
,
strong
)
UIWebView
*
webView
;
@property
(
nonatomic
,
assign
)
BOOL
isOpenScrool
;
@end
NS_ASSUME_NONNULL_END
ColorfulSchool/ColorfulSchool/Classes/NewFirstPage(新版首页)/Views/ZXBDSteamTableViewCell.m
0 → 100644
View file @
d51796be
//
//
// ZXBDSteamTableViewCell.m
// ColorfulSchool
//
// Created by 刘卓鑫 on 2019/5/28.
// Copyright © 2019 Colorful Any Door. All rights reserved.
//
#import "ZXBDSteamTableViewCell.h"
#import "LoginJump.h"
#import <AdSupport/ASIdentifierManager.h>
#import "ZXNewsViewController.h"
@interface
ZXBDSteamTableViewCell
()
<
UIWebViewDelegate
,
UIScrollViewDelegate
>
@property
(
nonatomic
,
copy
)
NSString
*
webUrl
;
@property
(
nonatomic
,
assign
)
BOOL
scrollIsUp
;
@end
@implementation
ZXBDSteamTableViewCell
-
(
void
)
awakeFromNib
{
[
super
awakeFromNib
];
// Initialization code
}
-
(
instancetype
)
initWithStyle
:
(
UITableViewCellStyle
)
style
reuseIdentifier
:
(
NSString
*
)
reuseIdentifier
{
if
(
self
=
[
super
initWithStyle
:
style
reuseIdentifier
:
reuseIdentifier
])
{
self
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
LoginJump
*
m
=
[
LoginJump
findAll
].
lastObject
;
NSDictionary
*
diccc
=
[
ZXTool
dictionaryWithJsonString
:[
m
.
modelUrl
mj_JSONString
]];
UILabel
*
la
;
if
(
diccc
[
@"title"
]
!=
nil
&&
!
[
diccc
[
@"title"
]
isEqualToString
:
@""
])
{
la
=
[[
UILabel
alloc
]
init
];
[
self
.
contentView
addSubview
:
la
];
[
la
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerX
.
equalTo
(
self
.
contentView
);
make
.
top
.
equalTo
(
self
.
contentView
).
offset
(
15
*
k6Scale
);
}];
la
.
textAlignment
=
NSTextAlignmentCenter
;
la
.
backgroundColor
=
[
UIColor
whiteColor
];
la
.
text
=
diccc
[
@"title"
]?
diccc
[
@"title"
]:
@"热点资讯"
;
UIView
*
line
=
[[
UIView
alloc
]
init
];
[
self
.
contentView
addSubview
:
line
];
line
.
backgroundColor
=
kRGBColor
(
239
,
239
,
239
,
1
);
[
line
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
la
.
mas_bottom
).
offset
(
15
*
k6Scale
);
make
.
height
.
mas_equalTo
(
1
);
make
.
left
.
equalTo
(
self
.
contentView
.
mas_left
).
offset
(
15
*
k6Scale
);
make
.
right
.
equalTo
(
self
.
contentView
.
mas_right
).
offset
(
-
15
*
k6Scale
);
}];
}
self
.
webView
=
[[
UIWebView
alloc
]
init
];
[
self
.
contentView
addSubview
:
self
.
webView
];
self
.
webView
.
delegate
=
self
;
[
self
.
webView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
bottom
.
equalTo
(
self
.
contentView
);
if
(
la
)
{
make
.
top
.
equalTo
(
la
.
mas_bottom
).
offset
(
16
*
k6Scale
);
}
else
{
make
.
top
.
equalTo
(
self
.
contentView
);
}
}];
self
.
webView
.
scrollView
.
delegate
=
self
;
CGFloat
bottomMargin
=
49
;
if
(
iPhoneX
)
{
bottomMargin
=
83
;
}
if
(
diccc
&&
diccc
[
@"url"
])
{
ASIdentifierManager
*
asIM
=
[[
ASIdentifierManager
alloc
]
init
];
NSString
*
idfa
=
[
asIM
.
advertisingIdentifier
UUIDString
];
NSString
*
jumpUrl
=
[[[[[[[
diccc
[
@"url"
]
stringByReplacingOccurrencesOfString
:
@"${schoolid}"
withString
:
CacheCampusId
]
stringByReplacingOccurrencesOfString
:
@"${userid}"
withString
:
CacheUserId
]
stringByReplacingOccurrencesOfString
:
@"${im}"
withString
:
@"none"
]
stringByReplacingOccurrencesOfString
:
@"${ia}"
withString
:
idfa
]
stringByReplacingOccurrencesOfString
:
@"${imMD5}"
withString
:
@"none"
]
stringByReplacingOccurrencesOfString
:
@"${androidId}"
withString
:
@"none"
]
stringByReplacingOccurrencesOfString
:
@"${versionid}"
withString
:
APPversion
];
self
.
webUrl
=
jumpUrl
;
[
self
.
webView
loadRequest
:[
NSURLRequest
requestWithURL
:[
NSURL
URLWithString
:
jumpUrl
]]];
}
}
return
self
;
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
// Configure the view for the selected state
}
-
(
BOOL
)
webView
:
(
UIWebView
*
)
webView
shouldStartLoadWithRequest
:
(
NSURLRequest
*
)
request
navigationType
:
(
UIWebViewNavigationType
)
navigationType
{
if
(
!
[
request
.
URL
.
absoluteString
isEqualToString
:
self
.
webUrl
])
{
ZXNewsViewController
*
VC
=
[[
ZXNewsViewController
alloc
]
init
];
VC
.
jumpUrl
=
request
.
URL
.
absoluteString
;
[
self
.
fromVc
.
navigationController
pushViewController
:
VC
animated
:
YES
];
return
NO
;
}
return
YES
;
}
//-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
// CGRect startRact = [self.webView convertRect:self.webView.bounds toView:kAppWindow];
// CGPoint sliderMargin = [scrollView.panGestureRecognizer velocityInView:scrollView];
// if (sliderMargin.y > 0) {
// NSLog(@"向下-%f---%@", scrollView.contentOffset.y, NSStringFromCGRect(startRact));
// self.scrollIsUp = NO;
// } else {
// NSLog(@"向上-%f---%@", scrollView.contentOffset.y, NSStringFromCGRect(startRact));
// self.scrollIsUp = YES;
//
// }
//}
-
(
void
)
setIsOpenScrool
:
(
BOOL
)
isOpenScrool
{
_isOpenScrool
=
isOpenScrool
;
self
.
webView
.
scrollView
.
scrollEnabled
=
_isOpenScrool
;
}
@end
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