UIScrollView * sv = [[UIScrollView alloc] init];
//设置是否显示水平滚动条
sv.showsHorizontalScrollIndicator = YES;
//设置是否显示垂直滚动条
sv.showsVerticalScrollIndicator = YES;
//设置是否超出边界自动回弹
sv.bounces = YES;
//设置水平方向是否自动回弹
sv.alwaysBounceHorizontal = YES;
//设置垂直方向是否自动回弹
sv.alwaysBounceVertical = YES;
//设置是否可以和用户交互
sv.userInteractionEnabled = YES;