uialertview

Navigation bar tint color changes after auto dimissal of UIAlertView

萝らか妹 提交于 2019-12-11 19:36:11
问题 I have written my custom UIAlertview to allow auto dismissal in certain cases. Now, with iOS 7 when auto dismissal happens the tint color of my nav bar changes. As per the iOS7 Transition Guide: https://developer.apple.com/library/ios/documentation/userexperience/conceptual/transitionguide/TransitionGuide.pdf When an alert or action sheet appears, iOS 7 automatically dims the tint color of the views behind it. To respond to this color change, a custom view subclass that uses tintColor in its

Is it possible to make an UIAlertView with 3 textfields?

故事扮演 提交于 2019-12-11 18:32:26
问题 I need to input first, middle and last names when user will add a contact to his addressbook. P.S.: Finally I found control , which allows that: https://github.com/eaigner/CODialog 回答1: Can you suggest something I can use instead? I'd present a modal view via presentViewController:animated:completion: (ios 5+) or presentModalViewController:animated: ios <5 (deprecated) If you want to stick with an alertview, you can find replacements on cocoacontrols.com. From the docs: Subclassing Notes The

UIAlertView displays textboxes and buttons

谁说胖子不能爱 提交于 2019-12-11 18:18:59
问题 I used the following code to create a UIAlertView and add some components on it but the result is at the image :(( (image is here : http://i.stack.imgur.com/DTg02.png) -(IBAction)login:(id)sender { UIAlertView *login = [[UIAlertView alloc]initWithTitle: @"Login first" message:@"enter username and password please first" delegate:self cancelButtonTitle:@"cancel"otherButtonTitles:@"OK", nil]; k = [[UITextField alloc] initWithFrame:CGRectMake(20.0, 70.0, 200.0, 25.0)]; //<< it also displays wrong

UIAlertView exits EXC_BAD_ACCESS error

限于喜欢 提交于 2019-12-11 17:14:20
问题 I have such error: when I click navigationbar.backItemButton I'm showing UIAlertView with two buttons. When I press on any of them application terminates just with EXC_BAD_ACCESS. Method - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex don't called. How can I solve it? Thanx! //h - file @interface DetailsTableViewController : UITableViewController <UITextFieldDelegate, UIAlertViewDelegate> //m - file - (void)viewWillDisappear:(BOOL)animated { //if changes

UIAlertview not closing properly?

情到浓时终转凉″ 提交于 2019-12-11 15:47:56
问题 I am using a UIAlertview and inside that one activity indicator in viewdidload() .But i tried to remove its from superview after a delay but after removing UIAlertview using following code i am not able to do anything in app.Is like a new transparent layer is still running above my view. CODE -(void)startAlertActivity { _alertView = [[UIAlertView alloc] initWithTitle:@"Loading " message:@"\n" delegate:self cancelButtonTitle:nil otherButtonTitles:nil]; spinner = [[UIActivityIndicatorView alloc

Show uialertview after opening an app after 3 times?

↘锁芯ラ 提交于 2019-12-11 14:19:30
问题 Is it possible to show a Alertview when opening an app after lets say 3 times? Can this be done with NSUserDefaults? Thanks! 回答1: int launches = [[NSUserDefaults standardUserDefaults] integerForKey:@"launchCount"]; if (launches > 3) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"My Alert" message:@"Some message" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; } [[NSUserDefaults standardUserDefaults] setInteger:launches+1 forKey:@"launchCount"]; 回答2: if(

Can't set UIAlertview events?

瘦欲@ 提交于 2019-12-11 14:12:36
问题 I can't set action event for alertview. Here when I click the alertview button it can't be actioned. What's the problem in my code. Here is my code : -(IBAction)savebuttons { if([username.text isEqualToString:@""] && [password.text isEqualToString:@""] && [emailid.text isEqualToString:@""] && [phonenum.text isEqualToString:@""] && [address.text isEqualToString:@""] && [city.text isEqualToString:@""] && [state.text isEqualToString:@""] && [country.text isEqualToString:@""] && [zipcode.text

ZUUIRevealController - Memory allocations keeps on increasing & slow UIAlertView & UIActionsheet

空扰寡人 提交于 2019-12-11 14:08:26
问题 I am starting with new iOS app in which I have to use Reveal control. So I planned to use great ZUUIRevealController library. I just created UI for 2 - 3 screens . In one of those screen I have to shown UIAlertView & UIActionsheet. But I realised that UIAlertView & UIActionsheet shows very slowly (it adds black overlay first & then shows UIAlertView/UIActionsheet, kind of alert view hangs while showing. Animation is not smooth). I didn't added any logic for coding just created the UI. I didn

UIButton subclass continuously highlighted after an popping up and UIAlertView

偶尔善良 提交于 2019-12-11 13:23:33
问题 I am subclassing a UIButton and detecting finger movements, if the user swipes his finger in a certain way I will pop up an UIAlerView. All good, except that after dismissing the UIAlertView... when the user next touches the UIButton the button goes to it's highlighted state and gets stuck there, continuously highlighted, even when no finger touching it. Pressing the button again the UIButton begins to behave normally (only highlights when touched). So I can only presume that an alert during

Align text in a UIAlertView that has a scrollbar

那年仲夏 提交于 2019-12-11 12:55:47
问题 If a UIAlertView contains a certain amount of text, the text display is automatically changed to have scrollbars. I would like this text to be centre-aligned. Searching around for the solution provides this SO response. However, this does not work on a UIAlertView that contains scrollbars. How do I align the text in such an alert? 回答1: My suggestion would be to not do this. It could break with any iOS update if Apple changes the way that UIAlertView is structured. That being said, you can do