Questions tagged [uialertviewcontroller]
33 questions
9
votes
2 answers
Change UIAlertController's title fontsize
I'm trying to change the title fontSize in an UIAlertController, but I can't manage how to set my NSMutableAttributedString to the title-property.
So for I've been creating the NSMutableAttributedString with the following code:
let title =…

Jacob Ahlberg
- 2,352
- 6
- 22
- 44
9
votes
5 answers
All the alert dialog message and textField have been changed to single line. Please checkout the image
Previously all the dialog and textField are working well. But not I do not know how these TextFields are suddenly changed to single line with triple. (Like some Message here...)
let alert = UIAlertController(title: "Cancel Booking !!", message:…

jazzbpn
- 6,441
- 16
- 63
- 99
2
votes
2 answers
Alert ViewController with Activity Loader Getting Warning and not Dismissing Swift
My scenario, I am trying to create Loader within AlertViewController. Here, I am getting below warnings and not allowing to dismiss after two trials. I am using below function in a common class and reusing in multiple viewController.
My Code
//…

jackios
- 155
- 2
- 11
1
vote
1 answer
Swift: How to properly write UIAlertAction with textfield and textview validation?
I am creating an app with one of the tab being a guestbook where users can write something. I use an UIAlertController to pop up a window with a textfield for entering name, and a textview for entering the message. I want to make the "Post" button…

Gino
- 61
- 1
- 7
1
vote
1 answer
popViewController and then immediately present an alert controller
I'm trying to pop the controller from an alert action and getting to another view controller. I want to do some action immediately after I get on to this other controller, say open another alert controller. How do I do…

RenuR
- 57
- 4
1
vote
1 answer
programmatically push to a new viewController after pressing uiAlert button
I was wondering if it is possible to push to a newViewController after pressing a button in the UiAlertController
my code looks like
@objc func handleAcceptRequest() {
let user = self.user
let username = user?.name
let alert =…

Zach Wilcox
- 39
- 1
- 7
1
vote
0 answers
UIAlertviewcontroller how to always show it above the current view controller like uialertview
With UIalertview we can show the alert from any class and it'll always show above the current view controller
I'm using below code snippet to find out the current view controller and show the alertviewcontroller on top of that.
…

Shiva
- 545
- 1
- 10
- 41
1
vote
0 answers
Runtime Auto Layout problem when creating Action Sheet by clicking UITableViewCell
I created a UITableView in Storyboard, added required Auto Layout constraints. I want to display an action sheet when a table cell is clicked, therefore I write the following codes:
func tableView(_ tableView: UITableView, didSelectRowAt indexPath:…

Raptor
- 53,206
- 45
- 230
- 366
1
vote
3 answers
iOS/Objective-C: Call AlertViewController from sharedInstance
I am updating some UIAlertViews, deprecated since iOS 9.0 to UIAlertViewControllers.
With UIAlertView, it was possible to just throw an alert from any code being executed--even in a utility class or shared instance--with the simple line:
[alertView…

user6631314
- 1,751
- 1
- 13
- 44
1
vote
1 answer
How to dismiss face id permission pop up?
We have added the face id description key in plist
NSFaceIDUsageDescription
This app requires Face ID permission to authenticate using Face recognition.
We are getting system pop up for accessing face id we want to dismiss that pop up.
Please…

Pratik
- 103
- 1
- 9
1
vote
1 answer
How to add UICollectionView inside UIAlertViewController?
There are similar question on stackoverflow How to add UITableView in a UIAlertView in swift and How to add a UITableView inside the UIAlertView in iPhone? but I am adding UICollectionView inside UIAlertViewController and I am getting…

Varun Naharia
- 5,318
- 10
- 50
- 84
1
vote
0 answers
Getting a handle on iOS's alert view controller by tel:// prompt
On iOS, opening a tel link via
func open(_ url: URL, options: [String : Any] = [:], completionHandler completion: ((Bool) -> Void)? = nil)
or the older (for iOS 9 and older)
func openURL(_ url: URL) -> Bool
will make iOS display an…

Mario A Guzman
- 3,483
- 4
- 27
- 36
0
votes
1 answer
Arabic and English text together in same label or in alert message
I am getting message from backend which contain both Arabic string as well as englist string when i set that message on alert it looks same as attached SS.
original message = "+966897845123 أدخل كلمة المرور لمرة واحدة (OTP) التي تم إرسالها"
Actual…

user20935301
- 9
- 3
0
votes
1 answer
swift how change UIAlertController font
When I added an extension to UIAlertController to modify actions fonts, it didn't seem to work. What should I do to modify the Action font。
Here is my code
extension UIAlertController {
open override func viewDidLayoutSubviews() {
…

qian
- 7
- 4
0
votes
3 answers
Dismiss alert view controller in a popover page
In a popover page, I'm trying to store some data in CoreData, and I need to show a loading view until the process is done.
I found a good and easy way, using a alert controller to show a loading label. In the function, I added a shouldPresent…

Martin sku
- 101
- 7