//
// ViewController.m
// scrollview加collectionview
//
// Created by 洪福清 on 16/11/29.
// Copyright © 2016年 BJTYL. All rights reserved.
//
#import "ViewController.h"
#import "SecondViewController.h"
#import "ThridViewController.h"
#import "UIColor+SPAddition.h"
#define SP_NavitionBarBackColor @"#1894d1"
@interface ViewController ()<UIScrollViewDelegate>
@property (strong, nonatomic) UISegmentedControl *segmentControl;
@property (strong, nonatomic) UIScrollView *scrollView;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
// 初始化子控制器
[self setupAllChildVcs];
[self