<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">只有一个viewcontroller,所以直接贴上代码就好</span>
//
// MainViewController.m
// scroll_embed_table_text
//
// Created by 马龙 on 15/7/6.
// Copyright (c) 2015年 马龙. All rights reserved.
//
#import "MainViewController.h"
#import "masonry.h"
@interface MainViewController ()
@property (strong, nonatomic) UIScrollView *scrollView;
@property (strong, nonatomic) UITableView *tableView;
@property(strong, nonatomic) UIView* subview;
@property(strong, nonatomic) UIView* subview2;
@end
NSInteger subview_height = 50;
@implementation MainViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.scrollView = [[UIScrollView alloc] init];
[self.view addSubview:self.scrollView];
[self.s