点击“编辑”按钮时,iPhone上的消息应用程序中会出现一个带按钮的附加窗格。见链接,截图。
它是默认的UITableView
属性吗? (可能不是)
是UIView
,在tableView上显示处理按钮操作的委托方法吗?
我到处搜寻都没有运气。你能给我提示吗,我怎么能自己做同一个? 我的应用程序是用Swift编写的。
答案 0 :(得分:0)
它可能是一个UIToolbar。只需将它添加到viewcontroller视图的底部即可。
答案 1 :(得分:0)
感谢所有人,你是对的,它是一个chmod 777 uploaded_folder_name
,它很容易使用。
创建工具栏:
UIToolbar
要表明:
let toolbar = UIToolbar(frame: CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: 50))
toolbar.barStyle = UIBarStyle.default
toolbar.items = [
UIBarButtonItem(title: "Cancel", style: UIBarButtonItemStyle.plain, target: self, action: #selector(cancelAction)),
UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.flexibleSpace, target: nil, action: nil),
UIBarButtonItem(title: "Next", style: UIBarButtonItemStyle.plain, target: self, action: #selector(nextAction))]
toolbar.sizeToFit()
删除它:
view.addSubview(toolbar)