In the below code becomeFirstResonder not working, only resignFirstresponder working...can anyone please help
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
if (textField == txtDate)
{
[txtDate resignFirstResponder];
[txtTime becomeFirstResponder];
}
if (textField == txtTime)
{
[txtTime resignFirstResponder];
[txtAddress be...
Hi,
I am trying to call a view via presentModalViewController from a UIAlertView button. The code is below, the NSlog is displayed in the console so I know that code execution is indeed reaching that point. Also, there are no errors or anything displayed:
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)button...
Hello,
I have implemented an NSAlert but the delegate method didDissmissWithButton is never called.
This code evokes the NSAlert:
NSString *title = [NSString stringWithFormat:@"Keine Internetverbindung"];
NSString *alertMessage = [NSString stringWithFormat:@"Es konnte keine Verbindung zu www.sip.de aufgebaut werden!"];
...
Hi all
I've got the problem that the UIAlertViewDelegate method - (void)alertViewCancel:(UIAlertView *)alertView is not called when I cancel a AlertView with it's cancel button.
Weird is that the delegate method - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex works perfectly.
Does anyone have an ...
The content is about 230 lines. It does not appear in UITextView except when you click on it AND try to scroll down. Otherwise, it is a white blank view.
Any ideas why?
UITextView *termsOfService = [[UITextView alloc] initWithFrame:CGRectMake(20.0, 100.0, 245.0, 170.0)];
termsOfService.text = responseString;
termsOfServic...
Hi All,
I want to show pop up of question with it's options.
Each question have 3 options.
Currently the text is not fitting in the UIAlertView.
My UIalertView is in landscape mode.
my questions are,
1) How to change the font and font size of UIAlertView message and Button?
2) How to increase the height and width of UIAlertView?
OR...
I have a method that posts HTTP data and displays a UIAlertView if there is an error. If I have multiple HTTP post I will show multiple UIAlertView for every error.
I want to show a UIAlertView only if is not showing other UIAlertView.
How can I determine this?
...
Hello everyone!
I have created an alert view with two buttons using the following code:
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle: title
message: msg delegate:nil cancelButtonTitle:@"Replay" otherButtonTitles:@"Highscore", nil];
[alertView show];
I want to run some code when one of the buttons is clicked.
In order ...
I'm using the UIAlertView to make a pop-up happen once the app has started up. It works fine but I only want the pop up to happen on the first start-up of the app. At the moment I've got the UIAlertView in the AppDelegate class, after the application didFinishLaunching. Here is my code at the moment.
- (BOOL)application:(UIApplication *...
Our app has been crashing with a frequency of roughly 1 in 1,500 launches due to a bug that is proving elusive. The relevant portion of the stack trace is included. It's being fired as a callback so I have no reference for where it's occurring in my own code.
It looks like what's going on is there is a UIViewAnimationState object that...
Hey Guys
Been getting this odd error.
heres the deal - in the below method i have an alert view come up, take a U/N and PW, then atempt to start another method.
The method
-postTweet
does not get activated
I just get this error in console
wait_fences: failed to receive reply: 10004003
Which is really odd - as ive never se...
Is it anyway possible to observe if a UIAlertView is being displayed and call a function when it is.
The UIAlertView is not being created and displayed in the same class which I want a function to be called in.
Its hard to explain but to put it simply I need to somehow monitor or observe if the view becomes like out of first responder...
Hello,
I have a subclass of UIAlertView with 2 UITextField for login / password.
My problem is that when I have finished to type my login and change the focus to the password field, there is a cursor on the login field and on the password field, but the focus is on the password field, so my question is, how can I make the cursor disapp...
Hi,
Does anyone have an Idea how to implement an UIAlertView for rating purpose like Apple show when you are removing an app from the iPhone?
You can choose how many stars to rate the app or don't rate it at all.
I already have a view that shows the stars according to the user touches but don't know how to connect it to the UIAlertView.....
from 1 week if my gps app fail to retrieve signal (eg: testing in my home) i don't receive any aler.
i've setup my error notification in this way
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error { NSString *errorType = (error.code == kCLErrorDenied) ?
@"Access Denied" : @"Errore sconosciuto"; ...
Below is the code I'm using to do a retry on an FBConnect session. When the [self loginToFaceBook] fires FBConnect adds a subview to 'window' which is still the UIAlert view, so when the UIAlert really dismisses it takes the FBConnect view with it. Any idea as to the best way to wait for the UIAlert view to be gone.
-(void)alertView:(...
Does anyone know in whose subview an active UIAlertView is located or how to find the thread in which it is running?
...
Is it possible to put UIPickerView into UIAlertView?If yes, can you give an example?
...
Hi...
I've added an UIAlertView that has UIActivityIndicatior as a subview on my application.
This alertView only show when the purchase is in progress. I've put my alert view in this way in my StoreObserver:
- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions {
for (SKPaymentTransaction *transac...
hello, i want to add a 414 X 210 size view to an alert view instead of a normal alert view display. I used
MyTicketAlert = [[UIAlertView alloc] initWithTitle:@"NEW TICKET"message:@"Ticket Generated Successfully\n GOOD LUCK!!" delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil];
[MyTicketAlert setBackgroundColor:[UIColor...