uitextfield

multiple UITextFields on one view

I've got a little problem with uitextfield. I use two of them in a view and when I write something to the second field the first string gets changed too. Here is my code -(BOOL)textFieldShouldReturn:(UITextField *)textField{ textString = textField.text; NSLog(@"the string1 %@",textString); [textField resignFirstResponder]; textString...

Responding to custom key presses on the iPad?

How do I add a character to a UITextField from ASCII or Unicode character set when a custom key is pressed? Disclaimer: I've seen tons of questions here on Stack Overflow, but I haven't gotten all the information I need to make a hebrew keyboard. ...

uitextfield runs textFieldShouldBeginEditing twice on iPhone when Offline

Hi, I can't figure out why my app runs the UITextField delegate Method textfieldshouldbeginEditing twice when i am in airplane mode and ideas. - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField { NSLog(@"TFSBE profile Table = %i", textField.tag); if ([[[UIApplication sharedApplication] delegate] checkInternet]) { return ...

UITextField keyboard doesn't appear

I have a very simple screen with an UITextField with the default configuration, nothing special. When I touch the UITextField, the keyboard doesn't pops up. I haven't any custom control, behavior or anything else, just that, but it doesnt'work. I've done this in previous apps iPhone/iPad apps already on the AppStore but i can't figure o...

i Want two UITextFields but with different delegate methods

I have a view with 2 textfields in it. The first one should get URL's, the second words to be searched on google. The problem is that the following method -(BOOL)textFieldShouldReturn:(UITextField *)textField; designs the behavior for both of them. What should I do in order to be able to design two behaviors just as I mentioned above (...

login form in iphone native application

i am trying to do the login form i have created two uitextfields for username ,password and one uibutton for login. when i enter password in password textfield i want to display all the text as '*' or any special characters like in the following images is there any default ways in sdk to do this or we have to do it logically if any ...

Cocoa Touch - keyboard keeps hiding itself

I am trying to move my view when the user selects a text field so that the text field is still visible, which I have achieved. I am also using a control event to ensure that the text field is not empty before enabling a button. Using [longTextField addTarget:self action:@selector(updateAnswerButtonEnabled:) forControlEvents:UIControlEv...

Multiple UITextFields grouped together like a UITableView section

Hi all, I'm looking for a clean way to implement a login screen in my iPhone application. I'd like it to appear as a grouped UITableView section with rounded corners and a separator line below between rows (like e.g. the sections in the Settings app). However, I'd like to give it a slightly smaller cornerRadius than the default setting ...

Text as Hyperlink in objective c

Hi, I have a text label with the text set as Contact Us.. When user taps on this label it should launch safari to open the web page.My doubt is how to make Contact Us as hyperlink.Now I can't modify my code to include a UIWebView..Please help me guys..I am in final stages of my project..If possible please help me with sample code..thanks...

resignFirstResponder causing EXC_BAD_ACCESS

Hi, I've got a UITextField on UITableViewCell, and a button on another cell. I click on UITextField (keyboard appears). UITextField has the following method called: - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField { NSLog(@"yes, it's being called"); owner.activeTextField = textField; return YES; }; Where owner....

Best way to allow text edit completion on a complex iPhone UI

I have a somewhat complex iOS view hierarchy. One piece of text is an editable UITextField. When the user touches it, it becomes first responder, and is editable. Here's the rub, though: Best practice should be that a touch anywhere outside the edit control causes it to resign first responder and end editing. What's the best way of acco...

UIKeyboardTypeNumbersAndPunctuation ignored on a UITextField with secure text entry

Hello everyone... I've got a UITextField that represents a numeric password. I need to set the keyboard type to UIKeyboardTypeNumbersAndPunctuation and secureTextEntry at the same time. If I set to Yes the secureTextEntry, the textField displays a Default Keyboard even if I had set UIKeyboardTypeNumbersAndPunctuation to the textField...

iPhone SDK Managing Memory for Multiview app

I have an app that programmatically creates labels and text fields based on the contents of a text file. Whenever the view controller is loaded, it creates text fields and labels that are different each time. My problem is I need to clear out the labels and text fields without releasing the view controller since I need to keep track of t...

UIAlert partially hidden on iPad horizontal orientation. How to move it up?

In my iPad app, I have an implementation of a login window as a UIAlertView subclass that adds two UITextField, using an idiom that's found on the net. The problem is that in horizontal orientation, the alert is partially hidden by the keyboard. Namely, the buttons are hidden. Of course, it's possible to hide the keyboard to reveal the ...

Where the magnifying glass takes the color when editing a UITextField ?

Hi, I have a UITextField with background color set to ClearColor and the text is white. The view has an image as background dark. When I want to edit the text, the magnifying glass background is also white or very light color, and you can't see the text. What can I do to force the background of the magnifying glass to be darker ? tha...

UITextField auto-suggest from a large database

Hi, I am trying to add suggestions for a UITextField. They show up as a UITableView below the text field that displays a few entries according to what the user is typing (like Google Suggest for example). The only method I tried so far is a select from an internal SQLite database. This works, but it is extremely slow as the database is...

UITextField resize width like safari on iPhone

How do I resize the UITextField when clicked with, like the search bar in mobile Safari? ...

How to stop the UITextField from responding to the shake gesture?

By default, if you shake the iPhone while entering text in a UITextField, a little box will appear asking if you want to undo typing. How can I prevent this from happening? I looked through the UITextField, UITextFieldDelegate, and UITextInputTraits docs and found nothing relating to shaking. Presumably I could subclass UITextField to i...

UITableViewCells with UITexFields, scroll to View above UIKeyboard

I cant seem to find an answer that works. Ok, I have 9 UITableView Cells, each has a UITextField. When the user presses NEXT, the 2nd(3rd,4th,etc.) TextField becomesFirstResponder. No problem. Prolem is, I cant get the UITableView to scroll upwards so the next/active textfield is showing above the keyboard. This is SUPER ANNOYING, than...

Placeholder text not centered for UITextField created programatically

Hi I am creating a UITextField programatically and placing it inside a UIView. The font size is set to 15.0f (system font). But the placeholder that appears is not centered in the text view. Any one know how to resolve this? I found some references on SO for blurred text etc and tried setting the frame of the textfield with integer va...