Program a preferences window in iOS using Xcode [closed]

Multi tool use
I'm new to programming and I want to add a window or pop-up where users can change different settings in my app, like vibration intensity and sounds. I'm currently working within a single view app. Does anyone have any advice to share?
ios xcode settings
closed as too broad by Paulw11, Larry Shatzer, Roman Pokrovskij, JSDBroughton, Roland Weisleder Jan 2 at 18:09
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I'm new to programming and I want to add a window or pop-up where users can change different settings in my app, like vibration intensity and sounds. I'm currently working within a single view app. Does anyone have any advice to share?
ios xcode settings
closed as too broad by Paulw11, Larry Shatzer, Roman Pokrovskij, JSDBroughton, Roland Weisleder Jan 2 at 18:09
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I'm new to programming and I want to add a window or pop-up where users can change different settings in my app, like vibration intensity and sounds. I'm currently working within a single view app. Does anyone have any advice to share?
ios xcode settings
I'm new to programming and I want to add a window or pop-up where users can change different settings in my app, like vibration intensity and sounds. I'm currently working within a single view app. Does anyone have any advice to share?
ios xcode settings
ios xcode settings
asked Jan 2 at 12:27


WilleverWillever
13
13
closed as too broad by Paulw11, Larry Shatzer, Roman Pokrovskij, JSDBroughton, Roland Weisleder Jan 2 at 18:09
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as too broad by Paulw11, Larry Shatzer, Roman Pokrovskij, JSDBroughton, Roland Weisleder Jan 2 at 18:09
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
For display popup you need to add this code
let alertController = UIAlertController(title: "Alert", message: "This is an alert.", preferredStyle: .alert)
let action1 = UIAlertAction(title: "Default", style: .default) { (action:UIAlertAction) in
print("You've pressed default");
}
let action2 = UIAlertAction(title: "Cancel", style: .cancel) { (action:UIAlertAction) in
print("You've pressed cancel");
}
let action3 = UIAlertAction(title: "Destructive", style: .destructive) { (action:UIAlertAction) in
print("You've pressed the destructive");
}
alertController.addAction(action1)
alertController.addAction(action2)
alertController.addAction(action3)
self.present(alertController, animated: true, completion: nil)
This doesn't seem to answer the question. How is this sample alert code applicable to showing a settings page in an app?
– rmaddy
Jan 2 at 16:05
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
For display popup you need to add this code
let alertController = UIAlertController(title: "Alert", message: "This is an alert.", preferredStyle: .alert)
let action1 = UIAlertAction(title: "Default", style: .default) { (action:UIAlertAction) in
print("You've pressed default");
}
let action2 = UIAlertAction(title: "Cancel", style: .cancel) { (action:UIAlertAction) in
print("You've pressed cancel");
}
let action3 = UIAlertAction(title: "Destructive", style: .destructive) { (action:UIAlertAction) in
print("You've pressed the destructive");
}
alertController.addAction(action1)
alertController.addAction(action2)
alertController.addAction(action3)
self.present(alertController, animated: true, completion: nil)
This doesn't seem to answer the question. How is this sample alert code applicable to showing a settings page in an app?
– rmaddy
Jan 2 at 16:05
add a comment |
For display popup you need to add this code
let alertController = UIAlertController(title: "Alert", message: "This is an alert.", preferredStyle: .alert)
let action1 = UIAlertAction(title: "Default", style: .default) { (action:UIAlertAction) in
print("You've pressed default");
}
let action2 = UIAlertAction(title: "Cancel", style: .cancel) { (action:UIAlertAction) in
print("You've pressed cancel");
}
let action3 = UIAlertAction(title: "Destructive", style: .destructive) { (action:UIAlertAction) in
print("You've pressed the destructive");
}
alertController.addAction(action1)
alertController.addAction(action2)
alertController.addAction(action3)
self.present(alertController, animated: true, completion: nil)
This doesn't seem to answer the question. How is this sample alert code applicable to showing a settings page in an app?
– rmaddy
Jan 2 at 16:05
add a comment |
For display popup you need to add this code
let alertController = UIAlertController(title: "Alert", message: "This is an alert.", preferredStyle: .alert)
let action1 = UIAlertAction(title: "Default", style: .default) { (action:UIAlertAction) in
print("You've pressed default");
}
let action2 = UIAlertAction(title: "Cancel", style: .cancel) { (action:UIAlertAction) in
print("You've pressed cancel");
}
let action3 = UIAlertAction(title: "Destructive", style: .destructive) { (action:UIAlertAction) in
print("You've pressed the destructive");
}
alertController.addAction(action1)
alertController.addAction(action2)
alertController.addAction(action3)
self.present(alertController, animated: true, completion: nil)
For display popup you need to add this code
let alertController = UIAlertController(title: "Alert", message: "This is an alert.", preferredStyle: .alert)
let action1 = UIAlertAction(title: "Default", style: .default) { (action:UIAlertAction) in
print("You've pressed default");
}
let action2 = UIAlertAction(title: "Cancel", style: .cancel) { (action:UIAlertAction) in
print("You've pressed cancel");
}
let action3 = UIAlertAction(title: "Destructive", style: .destructive) { (action:UIAlertAction) in
print("You've pressed the destructive");
}
alertController.addAction(action1)
alertController.addAction(action2)
alertController.addAction(action3)
self.present(alertController, animated: true, completion: nil)
answered Jan 2 at 12:45


jignesh Vadadoriyajignesh Vadadoriya
2,66611124
2,66611124
This doesn't seem to answer the question. How is this sample alert code applicable to showing a settings page in an app?
– rmaddy
Jan 2 at 16:05
add a comment |
This doesn't seem to answer the question. How is this sample alert code applicable to showing a settings page in an app?
– rmaddy
Jan 2 at 16:05
This doesn't seem to answer the question. How is this sample alert code applicable to showing a settings page in an app?
– rmaddy
Jan 2 at 16:05
This doesn't seem to answer the question. How is this sample alert code applicable to showing a settings page in an app?
– rmaddy
Jan 2 at 16:05
add a comment |
M,PqeBEqgZXYQqkl4Hg4ZqKmdj55EqjGgChesK8NjyB7