Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func renameSubjectID(){
- if(exportCount > 0){
- let okAlert = UIAlertController(title: "Cannot rename", message: "Subject ID cannot be rename after data was exported once", preferredStyle: .alert)
- let action2 = UIAlertAction(title: "Close", style: .default) { _ in
- }
- okAlert.addAction(action2)
- self.present(okAlert, animated: true)
- return
- }
- renamed = true
- nameView.subviews.forEach{ $0.removeFromSuperview() }
- nameView.removeFromSuperview()
- enterNameDialog()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement