1. 图片视图上不能直接滚动,需要设置交互属性为YES

_contentView = [[UIImageView alloc]initWithFrame:CGRectMake(0, _headerView.bottom, kDeviceWidth, kDeviceHeight-20-44-49-_headerView.height-kFooterViewHeight)];

_contentView.backgroundColor = [UIColor cyanColor]; _contentView.userInteractionEnabled = YES; [self addSubview:_contentView]; 


2.contentSize 这个属性,比uiscrollview的frame要小, 无需滚动, 自然就滚动不了。

3.scrollenabled 这个属性,标识着是否允许滚动,要言设成yes

4.因为AutoLayout的影响 -(void)viewDidLayoutSubviews { self.scrollView.contentSize = CGSizeMake(712,1000); }

另外还有一些比较隐蔽的原因. 如果这个scrollView是在IB里面生成的话,还得手动设置它的contentSize,并且不能在initWithNibName:bundle:里面设置,因为The nib file you specify is not loaded right away. It is loaded the first time the view controller’s view is accessed. If you want to perform additional initialization after the nib file is loaded, override theviewDidLoad method and perform your tasks there.

最新文章

  1. Microsoft 2013 新技术学习笔记 二
  2. Android开发-API指南-Content Provider基础
  3. Java—反射
  4. OK335xS PMIC(TPS65910A3A1RSL) reset
  5. 通过源码学Java基础:BufferedReader和BufferedWriter
  6. 『重构--改善既有代码的设计』读书笔记----Remove Middle Man
  7. Ubuntu14.04 安装QQ国际版wine-qqintl
  8. python基础教程_学习笔记14:标准库:一些最爱——re
  9. iOS基础 - 通知中心(NSNotificationCenter)
  10. Fedora 19 搭建Qt环境
  11. 连接数据后,当执行查询语句报错:ORA-01219: 数据库未打开: 仅允许在固定表/视图中查询
  12. C++:LIB和DLL的区别与使用
  13. 初识 go 语言:方法,接口及并发
  14. 2018-2019-1 20189203《Linux内核原理与分析》第四周作业
  15. LiveCharts文档-3开始-3类型和设置
  16. my phone blackberry classic / passport / priv / keyone
  17. ecshop学习1
  18. VMware Workstation 14 黑屏的一个解决办法
  19. Python: ValueError: too many values to unpack
  20. Python 应用剖析工具介绍

热门文章

  1. java 面对对象(抽象 继承 接口 多态)
  2. SATA接口硬盘加密器
  3. FCKeditor插件开发实例:uploadify多文件上传插件
  4. 灯塔(LightHouse)
  5. 正式学习React(五) react-redux源码分析
  6. Delphi 实现任务栏多窗口图标显示(使用WS_EX_APPWINDOW风格)
  7. 《Programming WPF》翻译 第7章 4.转换
  8. C/C++ 指针的非空判断
  9. MySQL库表状态查询
  10. <转载>linux gcc编译器中使用gdb单步调试程序,程序不是顺序执行的。