step 1 定义图片或地图的高度,创建图片或地图视图
//地图高度
let mapHeight:CGFloat = 200 + STATUS_HEIGHT
let frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)
tableView = UITableView(frame:frame,style:.Grouped )
tableView.backgroundView = UIImageView(image: UIImage(named: "bgImage"))
tableView.separatorStyle = .None
tableView.delegate = self
tableView.dataSource = self
self.view.addSubview(tableView)
//地图
mapView = MKMapView(frame:CGRectMake(0, -mapHeight, SCREEN_WIDTH, mapHeight))
mapView!.mapType = MKMapType.Standard
mapView!.contentMode = .ScaleAspectFill
mapView!.clipsToBounds = true
tableView.addSubview(self.mapView!)
tableView.contentInset = UIEdge