iOS模拟器中的按钮“后退”我用蓝色矩形

时间:2015-11-11 20:34:24

标签: ios swift

当我启动iOS模拟器并按下viewcontroller中的第一行时,它会打开另一个相同的viewcontroller,但顶部是蓝色矩形,它覆盖了按钮“Back”。我错过了什么?

First image

Second image

class gaga:UITableViewController {

override func viewDidLoad() {
    super.viewDidLoad()
    // Uncomment the following line to preserve selection between presentations
    // self.clearsSelectionOnViewWillAppear = false

    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    // self.navigationItem.rightBarButtonItem = self.editButtonItem()

}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}

// MARK: - Table view data source

override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
    // #warning Incomplete implementation, return the number of sections
    return 1
}

override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
    // #warning Incomplete implementation, return the number of rows

    return Model.sharedInstace.categoryArray.count

}

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    let cell = tableView.dequeueReusableCellWithIdentifier("LabelCell", forIndexPath: indexPath) as! cellTableViewCell

    let category = Model.sharedInstace.categoryArray[indexPath.row]

    cell.categoryName1.text = category.name
    cell.numberOfSubjects1.text = category.id

    return cell
}

}

1 个答案:

答案 0 :(得分:1)

我有同样的问题。它是由背景图像引起的。如果问题消失,请尝试删除所有背景并检查。

enter image description here