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...
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.
...
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 ...
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 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 (...
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 ...
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...
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 ...
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...
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....
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...
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...
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...
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 ...
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...
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...
How do I resize the UITextField when clicked with, like the search bar in mobile Safari?
...
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...
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...
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...