UI crimes aside... I'd like to have a UILabel replace a UITextField after some user input. Is there an easy way to accomplish this so when the UITextField is hidden its value gets replaced by a UILabel that doesn't appear to move...appearing to "set" into the background so to speak?
I've managed to do this by nudging the fields around i...
Hi,
When using a UITextfield to enter information a keyboard pops up on the iphone simulator, the information with it says it will disappear again when return is pressed but it does not.
is there a line of code I need to add so that it will disappear again or is this a querk with the simulator??.
Carl.
...
Hello,
I'm wondering if it is possible to put a hyperlink in a UITextView that will open up safari and take the user to a web page. And if so how can I accomplish this.
Thanks in advance for your help.
...
I have a UITextField in my application. I'd like to restrict the set of characters that can be can be entered into the field to a set that I have defined. I could filter the characters entered into the field when the text is committed using the UITextFieldDelegate method:
- (BOOL)textFieldShouldReturn:(UITextField*)textField
However, ...
I am using the numbers and punctuation keyboard for a textfield, but whenever the spacebar is pressed the keyboard switches to the default keyboard. Is there a way to prevent this from occuring? I need the spacebar, so removing it is not an option for me if that is even possible.
...
Hi,
Is there a way for me to find out when the user is magnifying the text in a UITextField to move the cursor between characters?
I'm using a custom background for the textfield which is dark. However, my view background is light, which means that when the magnifying glass appears above the text field, I can't see the text (because it...
Hello.
Let's start with an example: when you enter the Contact program on your iPhone, then type on the TextField "Search", the keyboard is displaying itself and the tableView under is going dark (and deactivated). Then if I touch this dark deactivated list, the keyboard hides itself and the list becomes normal.
I would like to reproduc...
I have a UITextField inside a ScrollView that is supposed to be animated into a visible area above the popping keyboard when entering the textfield. So I used the delegates textFieldShouldBeginEditing-method to call the scrollviews setContentOffset.
now in the 2.2.1 Simulator this worked just fine, but in the 3.0 Simulator the scrollvi...
While using UITextField in objective c, keyboard appears, after typing some figure I wanna move to another Textfield or button but neither the cursor removes from text field nor the key board disappears. Wat should i do?
tempTextField.borderStyle = UITextBorderStyleBezel;
tempTextField.textColor = [UIColor blackColor];
tempTextField.fon...
How would I say that if a UITextField has @"-" in it, do something.
Right now my code is like this. It doesn't seem to work:
if (MyUITextField.text == @"-") {
NSRange range = {0,1};
[a deleteCharactersInRange:range];
MyUITextField.text = MyUILabel.text;
}
I know that I am doing something very wrong with the code. Please he...
For some reason, none of my UITextFields will autocapitalize. I have set the property in InterfaceBuilder as well as programatically as shown below.
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"search_cell"];
UITextField *tf = [[UITextField alloc] initWithFrame:CGRectMake(12, 10, 320, 32)];...
The problem of limiting strings that are directly entered into a UITextView or UITextField has been addressed on SO before:
iPhone SDK: Set Max Character length TextField
iPhone sdk 3.0 issue
However now with OS 3.0 copy-and-paste becomes an issue, as the solutions in the above SO questions don’t prevent pasting additional characters...
I am using a UITextField to get input for a price field. Since it is for price, I wanted to make a custom keyboard for just a numpad and a decimal button. I have the keypad view setup, however, I dont' know how to disable the default iphone keyboard completely. Any ideas?
...
I have a class inherited from UITableViewController and this is also the root class. This tableView contains three custom UITableViewCells (loaded from NIB file and not subclassed) and each UITableViewCell has one UITextField. Now when I implement delegate method
- (BOOL)textField:(UITextField *)textField
shouldChangeCharactersI...
How can I get the numeric keyboard with the decimal separator? Currently I am stuck with UIKeyboardNumberPad.
...
For an IBOutlet UITextField, does it matter as far as memory management or other reasons how you clear the text value?
textFieldX.text = nil
or
textFieldX.text = @"";
In objective-c it is acceptable to message a nil object and @"" is a static NSString *. I'm not sure if every @"" points to the same object in memory or if it allocat...
I am trying to create a table view similar to the YouTube video uploader view in the Photo Gallery on the iPhone.
Here's the basic setup.
I have a custom UITableViewCell created that contains a UITextField. Displaying the cell in my table works great and I can edit the text with no problems. I created an event hook so I can view when t...
I want to edit the user's username inside a UITableView. I added a UITextField to the UITableViewCell and this seems to work very nicely. But when the user touches the cell (even outside the textfield), he expects to edit.
How do I programatically select the textfield?
The code would look something like:
- (void)tableView:(UITableVi...
I'm working on a fairly simple iPhone app to solve the quadratic equation, mostly because it's so easy-at least the concepts and math!
I've created an interface in Interface Builder that has a couple Labels, 3 text fields (varAfield, etc) and a Solve button. The 3 text fields which are set as UITextFieldDelegate have been set so that th...
How can I limit the number of characters in a UITextField?
I.e if I limit it to 10 characters, the user will be unable to enter more than 10. Also I want to prevent him from entering some special characters like +, =, etc.
How would I do this?
...