阻止在ios标签栏上自动创建更多内容

时间:2016-03-10 03:13:24

标签: ios xcode storyboard

我使用https://github.com/itsKaynine/SwiftRaisedTab作为中心rasedbutton。

我用故事板测试,但有点奇怪。

First View

这是我应用的观点

Select Tab

点击第三个标签

Click Title Cell

与show链接的segue,我点击取消退出

After click cancel

标签栏已更改。为什么会出现更多按钮?

Storyboard

这是我的故事板

我只想来回细节 我不想要更多按钮。标签栏按钮应固定4项

1 个答案:

答案 0 :(得分:0)

这是 https://github.com/itsKaynine/SwiftRaisedTab 的错误

每次都会调用addRaisedButtonimport UIKit import SwiftRaisedTab class ViewController: RaisedTabBarController { var isActivated: Bool = false override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) if(!isActivated) { isActivated = true // Insert empty tab item at center index. In this case we have 5 tabs. self.insertEmptyTabItem("", atIndex: 2) // Raise the center button with image let img = UIImage(named: "icon_camera") self.addRaisedButton(img, highlightImage: nil) } } // Handler for raised button override func onRaisedButton(sender: UIButton!) { super.onRaisedButton(sender) println("Raised button tapped") } }

$("#Test").dialog({
        bgiframe: true,
        resizable: false,
        width: 700,
        height: 400,
        modal: true,
        title: 'Note',
        autoOpen: false,
        draggable: true,
        show: "blind",
        hide: "blind",
        bDestroy: true,
        overlay: {
            backgroundColor: '#000',
            opacity: 0.5
        }**,**
    });