         mySegement.addTarget(self, action:#selector(RootViewController.mySegementAction(segement:)), for: UIControlEvents.valueChanged);
         self.view.addSubview(mySegement);
     }
-
-    override func didReceiveMemoryWarning() {
-        super.didReceiveMemoryWarning()
-        // Dispose of any resources that can be recreated.
-    }
     
     func buttonSave()
     {

//
//        self.pageViewController!.didMove(toParentViewController: self)
        
        
        //创建一个视图
        let myView=UIView.init();
        myView.frame=CGRect(x:20,y:40,width:260,height:50);


import UIKit

class RootViewController: UIViewController, UIPageViewControllerDelegate,UITableViewDelegate,UITableViewDataSource {

    var pageViewController: UIPageViewController?
    var nameArr = ["嘿嘿嘿1","哈哈哈2","啦啦啦3","哈哈哈4","啦啦啦5"]
    let myTableView=UITableView();

    override func viewDidLoad() {
        super.viewDidLoad()
