【文件属性】:
文件名称:ios滚动效果
文件大小:34KB
文件格式:ZIP
更新时间:2018-08-04 05:17:09
顶部滑动
实现了顶部滑动,
- (void)tapClick:(UITapGestureRecognizer *)tap {
[UIView animateWithDuration:0.3 animations:^{
_lineView.frame = CGRectMake(tap.view.frame.origin.x, 47, tap.view.frame.size.width, 2);
}];
//文字颜色
UILabel *label = (UILabel *)tap.view;
label.textColor = FengColor;
label.userInteractionEnabled = NO;
_lastSeleLabel.userInteractionEnabled = YES;
if (k==0 && tap.view.tag == 1000) {
_lastSeleLabel.userInteractionEnabled = NO;
} else {
_lastSeleLabel.textColor = [UIColor blackColor];
}
_lastSeleLabel = label;
k++;
}
【文件预览】:
滚动效果
----KenViewController.h(430B)
----滚动效果()
--------main.m(334B)
--------AppDelegate.h(277B)
--------AppDelegate.m(2KB)
--------Base.lproj()
--------ViewController.h(245B)
--------Images.xcassets()
--------Info.plist(1KB)
--------ViewController.m(1KB)
----滚动效果Tests()
--------____Tests.m(850B)
--------Info.plist(757B)
----RootViewController.h(227B)
----.DS_Store(6KB)
----KenViewController.m(4KB)
----滚动效果.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(17KB)
--------xcuserdata()
----RootViewController.m(834B)