I have multiple textfields in a view (not a scrollview); 2 in particular are side by side, all are created in IB.
I use the same .xib for more than 1 entry screen. All textfields appear above the keyboard so keyboard covering these fields is NOT a problem.
On some screens I only need one of the two side-by-side textfields so I hide t...
When one of the UITextFields I have becomes active it causes a Memory Warning, this is what I see in the console:
Received memory warning. Level=2
The thing is that the UITextField has a Font Size 32, Bold, Courier New & I think that loading that specific font is causing the memory warning, is loading a font that "heavy"? if so why? I ...
So I'm totally stumped by this one and tempted to call "OS bug".
I have a TableView controller with a single section, and in the header for that section there is an UITextField. Several operations result in rows being added/removed without a problem. However, as soon as text is edited in the header, and the keyboard dismissed, any inser...
Hi all,
In my project (my first one) I try to assign a text to a textfield created in the Interface Builder.
[date setText:@"2010"];
I also tried using
date.text = @"2010"
I have created the Outlet and don't get any error... the text just doesn't show up.
Just in case it matters...
I prevent the keyboard from showing up and displ...
Hi Everybody!
I have a simple piece of code that works on every system except iOS4.
It's about resigning first responder for a UITextField. The text field is all wired up, and here's the code for the delegate:
- (BOOL)textFieldShouldReturn:(UITextField *)textField{
[opis resignFirstResponder];
return YES;
}
I've tried it almo...
Hi,
I have two UITextFields and i am using those to search data when the Return key is clicked.
The conditions of searching data i have placed on
-(BOOL)textFieldShouldReturn:(UITextField*)textField
{
if((textField == SearchText1) && (textField == SearchText2))
{
------
}
}
I need both the text from Se...
Hi, I have some landscape UITextFields that appear to trigger a portrait keyboard. Some details:
1) I have a view controller that only allows UIInterfaceOrientationLandscapeRight in the shouldAutorotateToInterfaceOrientation call. This controller's view is set as such:
mViewController.view = mRootRotatedView;
[ [ [ UIApplication shar...
this is what i get when using this code:
[[Director sharedDirector] pause];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"Rank on ScoreBoard: %d",positionOnBoard] message:@"" delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:@"Submit", nil];
nameField = [[UITextField alloc] initWit...
Hi all,
I am trying to figure out if there is a way to implement an autocomplete functionality in a UITextField for specific values.
I know that the UITextField can do this using the iPhone dictionary (much like searching google in safari, etc), but I want to be able to programmatically have it correct to certain values that I specif...
Hey Guys
I have an app that only has one text field and I want that text field active with the keyboard active when the view loads.
Is there any way to force it?
James
...
i created a UITextField and a custom View.
after that i added this custom view as "inputView" to my UITextField.
amountKeyboardViewController *amountKeyboard = [[amountKeyboardViewController alloc] initWithNibName:@"amountKeyboardViewController" bundle:nil];
amountTextField.inputView = amountKeyboard.view;
[amountTextField becomeFirs...
Hi,
I want to use a TableView for representing a Username/Password textfields dialog in a nice and grouped view. I figured the best case is to use the TableView and two cells for this.
I kind of got lost in the implementation... Is there any built in cells for this that I am missing?
...
I have three textfields in interface builder being used to accept input. When a button is pushed the data in the 3 fields are processed. Currently, when one of the textfields sends out a textFieldShouldReturn (or similar) message to its delegate, I assign the "sender" parameter (using the tag property) to the delegate's respective UIText...
Hi,
I am wondering if there is a way to tell if the user hasn't typed in the UITextField say for 2 seconds.
If that's not possible, I'd like to know if there is a way to tell if the user made an error typing in the text field - example:
There is a UITextView which contains objects from an NSArray and the user has to type in the textf...
[Number.editable = NO];
[Number resignFirstResponder];
[Password.editable = NO];
[Password resignFirstResponder];
I am getting the error
Request for member 'editable' in something not a structure or union
:S
Thanks
...
hi !
so in my viewdidload i got something like
[nameTextField becomeFirstResponder]
now after a button gets klicked, i want to slide out the keyboard of this textfield, and slide another keyboard of another textfield in.
i thought about
[nameTextField resignFirstResponder];
[dateTextField becomeFirstResponder];
but the other keyb...
I have a UITextField in my iPhone app. I know how to make the text field select all of its text, but how can change the selection? Say I wanted to select the last 5 characters, or a specific range of characters, is that possible? if not, can I move the lines marking the beginning and end of the selection, as if the user is dragging them?...
Hi,
Is it possible to change the secure password character displayed ?
...
Hi.
I have a table with several text fields in it. Tapping on any of the text fields brings up the keyboard and the view scrolls automatically to bring the cursor above the keyboard if required.
I have a method in there that gets called whenever the user presses the Return key while editing a text field and I simply move the first resp...
I have a UITextField with the adjustsFontSizeToFitWidth property set to YES. I want to get ahold of the current (adjusted) font size. Is that possible?
If not, getting ahold of the actual width of the text (in the adjusted size) would be almost as good.
...