![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UIScrollerView
tjkjdxlhj
这个作者很懒,什么都没留下…
展开
-
UIScrollView响应touchesBegan事件
用过UIScrollView的都会发现UIScrollView不会响应touch事件,这样就无法在touchesEnd方法中做一些事情了,比如关闭键盘等等。其实写个category就可以解决这个问题了,直接上代码:@implementation UIScrollView (UITouchEvent)- (void)touchesBegan:(NSSet *)touches with转载 2014-04-02 17:13:40 · 854 阅读 · 0 评论 -
UIScrollView基本用法和代理方法
- (void)viewDidLoad{ [super viewDidLoad]; scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)]; scrollView.backgroundColor = [UIColor redColor]; // 是否支持滑动最顶端转载 2014-04-07 16:27:39 · 2244 阅读 · 0 评论 -
关于UIScrollerView
@protocol UIScrollViewDelegate几个概念的理解:contentSize:可滑动区域的大小contentOffset:滑动视图里面的内容的相对位置contentInset:滑动视图在外面的相对位置1、只要view有滚动(不管是拖、拉、放大、缩小等导致)都会执行此函数-(void)scrollViewDidScroll:(UIScrollView转载 2014-03-27 16:06:44 · 629 阅读 · 0 评论