我使用https://github.com/itsKaynine/SwiftRaisedTab作为中心rasedbutton。
我用故事板测试,但有点奇怪。
这是我应用的观点
点击第三个标签
与show链接的segue,我点击取消退出
标签栏已更改。为什么会出现更多按钮?
这是我的故事板
我只想来回细节 我不想要更多按钮。标签栏按钮应固定4项
答案 0 :(得分:0)
这是 https://github.com/itsKaynine/SwiftRaisedTab 的错误
每次都会调用addRaisedButton
和import 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
}**,**
});