Swift 控件

 

1. UiActionSheet 列表形式的按钮菜单

 

        var actionSheet = UIActionSheet()
        actionSheet.title = "菜单列表"
        actionSheet.delegate = self
        actionSheet.addButtonWithTitle("菜单1")
        actionSheet.addButtonWithTitle("菜单2")
        actionSheet.addButtonWithTitle("菜单3")
        actionSheet.addButtonWithTitle("菜单4")
        actionSheet.destructiveButtonIndex = 1
        actionSheet.showInView(self.view)

 

你可能感兴趣的:(swift,控件)