Questions tagged [alertview]
85 questions
6
votes
5 answers
How to add a UITableView inside the UIAlertView in iPhone?
I want to add the UITableView inside the alert view.
I have tried to add a table view as a sub view of alert view, it's not working. Can you give me some code or sample link for that?
How can I do that?

Pugalmuni
- 9,350
- 8
- 56
- 97
6
votes
1 answer
ios black keyboard with white text appears after view change when keyboard open
I am using a "dark" style keyboard for my standard TextField. This is for a login textfield, or "forget my password" textfield, where the user enters some info, submits it, and if it succeeds they are sent to another View, usually by a standard…

Miro
- 5,307
- 2
- 39
- 64
5
votes
4 answers
UIALertView multiple buttons with text
I have an alertview with 3 buttons and text(label and NOT textView) If I jam it all together, it'll become ugly with this tiny scroll-text and all the buttons taking up most of the space. Does anyone know how to fix this?

user1970792
- 63
- 1
- 1
- 5
4
votes
1 answer
UIAlertview is showing in portrait mode when screen is in landscape mode
I have an application that is configured to support Portrait mode only. But I have to show one screen (say abcViewController) in my application in landscape mode. When abcViewController screen is pushed ,orientation changes from Portrait mode to…

ajeet sharma
- 803
- 10
- 37
4
votes
0 answers
UIAlertView displaying "translucent" after a short delay
I just noticed that my UIAlertView are displaying "in two steps" and it looks disturbing, it's like a display bug and not user friendly.
When displaying an alert view, it first displays "opaque" (not translucent) while animating, and then it becomes…

Thomas Albert
- 275
- 1
- 10
3
votes
1 answer
Cancel a segue in swift with shouldPerformSegueWithIdentifier
I have a function that checks if the log in is correct. If it's OK, I show next screen. If the user is incorrect, I cancel the segue and show an alert .
The problem arises because when I call this function in the shouldPerformSegueWithIdentifier…

imj
- 472
- 1
- 8
- 24
3
votes
0 answers
Detecting cancel button on itunes login alertView for in-app purchases
Searched for answer to this all over, can't find an answer.
I have an app with IAP. If the user is not logged into iTunes, they get a login prompt.
If they cancel from the Login prompt, I get a callback to failedTransaction:transaction but the…

user1673403
- 31
- 4
3
votes
4 answers
Objective-C: initWithTitle:@"" and alertBox.title = @""
Is there a difference between these two and which one may be better or faster or have any advantage between:
UIAlertView * alertBox = [[UIAlertView alloc] initWithTitle:@"Title"];
And:
UIAlertView * alertBox = [[UIAlertView alloc]…
user2742371
3
votes
3 answers
Validation for textfield in uialertview
I show UIAlertView with UIAlertViewStylePlainTextInput style. Then I try to validate for empty field like this:
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
if (buttonIndex == 1) {
if…

Pavel Kaljunen
- 1,291
- 2
- 26
- 53
2
votes
4 answers
UIAlertView in appdelegate.m does not work
I have been googling this problem for almost a whole day now, without getting any closer to a solution, so i would like to ask you guys.. :)
I'm working on an iOS app, which should connect to a mbed over WiFi and give the user a dialog if it…

René Josefsen
- 143
- 2
- 11
2
votes
4 answers
How to make alert view appear in center of the view controller using swift 2.2
I am developing a app using swift 2.2, in my app I am having a button when a user taps on that button alert view will appear which contains four buttons in vertical everything works fine but alert view appearing in bottom of the view controller how…

raj kumar
- 69
- 1
- 7
2
votes
2 answers
Facebook Web Dialog Crashes after clicking on Alert View button (iOS)
I'm trying to integrate an iOS application with Facebook. Login and most of the features work well but I am experiencing a little-big problem when I try to get FBWebDialogs to share something that user has posted. It works well if it is called…

bitsdisasters
- 253
- 5
- 14
2
votes
1 answer
Usernotes in ios
I want to create a user note form in my application,currently am using one textview inside a view its looking bad !! is there any other control suits for this purpose? Main aim is when user click the button a small textview will appear they can add…

Naveen
- 1,251
- 9
- 20
- 38
2
votes
3 answers
iOS alertview action on a button
I have a button in a menu which when touched, pops up a alert message with two buttons: "Cancel" and "Yes". This is the code I have for the alert:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Exit game"
…

Stumpp
- 279
- 4
- 7
- 16
2
votes
1 answer
Display CFUserNotification on iPhone lock screen
I am developing an iPhone app that need to display some message on lock screen. I have tried to use local notification or CFUserNotification but neither of them can display the message on top of the lock screen. For CFUserNotification I have tried…

user1768826
- 21
- 2