uitextfield

Moving a textfield horizontally within view

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...

UITextField causing MemoryWarning.

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 ...

UITableView crash on updates after text edit

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...

UITextField does not show the assigned string

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...

UITextField resign first responder iOS4

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...

How to get the text from two UITextFields in Objective-C?

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...

keyboard for landscape UITextField showing up portrait

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...

iOS4.0: UIAlertView with UITextField messed up

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...

UITextField Autocomplete - iPhone SDK

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...

Make a UITextField active on load

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 ...

Return Inputs to UITextfield with custom inputView

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...

How do I implement a login screen that uses TableView for an iphone application

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? ...

Assigning IB textfields to delegate UITextField properties

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...

(iPhone) a way to tell when the user is done typing on a timed interval?

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...

set UITextField as non editable - Objective C

[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 ...

two UITextFields - slide first Keyboard out and next in

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...

Can I select a specific block of text in a UITextField?

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?...

change the secure password character in UITextfield

Hi, Is it possible to change the secure password character displayed ? ...

Easiest way to prevent the cursor from going behind the keyboard in iPhone SDK?

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...

iPhone -- getting the adjusted font size of a UITextField

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. ...