uitextfield

how to avoid dots next to a uitextfield

Hi, Is that possible to remove the dots which are displayed next to uitextfield when text is larger than the width of the uitextfield. ...

UITableViewCell with all subviews disappears

I placed UITableViewCell with UITextField as UITableView's tableHeaderView in Interace Builder. When I start editing text in UITextField, UITableViewCell with UITextField disappear. They even disappear when compiling this xib in Interface Builder. Any possible solutions? ...

UITextView.text property doesn't update first time, and then clips or doesn't display when it does

I'm trying to get the contents from a dictionary into a UITextView. The dictionary contains molecular masses paired with percentages, for example: 24 -> 98 25 -> 1.9 26 -> 0.1 I have an NSArray containing the keys from the dictionary, sorted in ascending order. So, here is my code to generate the string to set as the textField.text pr...

a line break in a UITextField?

is it possible to put a line break in a UITextField or would I have to use UITextView? thanks ...

UITextField turn places with UILabel in the UITableView during scrolling

I have a strange problem with UITableView and UITextField inside the cell (as subview). In the window view (UITableView, grouped, scrollable) there are two sections. First section has got 5 rows: 1.1 - cell with UITextField 1.2 - cell with UILabel 1.3 - cell 1.4 - cell with UITextField 1.5 - cell with UISwitchButton and the second ...

UITextField editing issue - iPhone SDK

Hi all, I am having an issue with my UITextFields in my iPhone app that I am hoping someone here may have seen before. I have a few UITextField's on my screen, and when they are tapped and they keyboard appears they are covered. To overcome this, I animated the view to move up with: -(void)moveViewUpFromValue:(float)fromOldValue toNe...

Hiding the keyboard when UITextField loses focus

Hello everyone, I've seen some threads about how to dismiss the Keyboard when a UITextField loses focus, but it did not work for me and I don't know how. The "touchesBegan:withEvent:" in the following code, never gets called. Why? - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [[event allTouches...

ResignFirstResponder doesn't dismiss the keyboard (iPhone)

Hi all, I've searched through this site that I couldn't find a solution to the problem I'm facing now. Hope someone can help. I've created a UIAlertView to prompt user to enter their name in an iPhone app. UIAlertView *enterNameAlert = [[UIAlertView alloc] initWithTitle:@"Enter your name" ...

Iphone - Class property causes crash

Hi, So I'm still very new to this whole objective C think and I ran into a problem I'm not sure the root cause for. My h file looks basically like this : @interface DrinkDetailViewController : UIViewController<UITextFieldDelegate> { UITextField* nameTextField; UITextField* activeView; } @property (nonatomic,retain) IBOutlet UI...

How do I hide the textfield cursor on the iPhone when keyboard is active.

we are trying this for password settings,so that cursor should not be visible to user. ...

iPad keyboard will not dismiss if navigation controller presentation style is "form sheet".

UPDATE: This is apparently "works as intended" classed by Apple. See accepted answer below for details. Update: this question is about a behavior discovered in the iPad keyboard, where it refuses to be dismissed if shown in a modal dialog with a navigation controller. Basically, if I present the navigation controller with the followi...

UITextField setAutocapitalizationType wonky behavior

I've got two XIB-generated UITextFields that I'm conditionally configuring in -viewWillAppear: as follows: //Configure text fields [emailField setDelegate:self]; [emailField setKeyboardType:UIKeyboardTypeEmailAddress]; [emailField setAutocapitalizationType:UITextAutocapitalizationTypeNone]; [emailField setAutocorrectionType:UITextAutoco...

Saving data when navigating

how can i save the data in from texfield when i navigate back to previous view? i have set the app to save all data to plist when terminate but i when i am navigating up and down view, i need to save the data to some place. any suggestion? save data when "back" button at nav bar is press? but how? save to NSUserDefaults? ...

How do you reference a textfield on a different view?

Hi, I have view 'A' which has a number of textfields. Pressing a button on view 'A' brings up view 'B' (with a picker to select multiple data). On close, view 'B' disappears and viola, the textfields are populated. This should be straight forward solution but I can't seem to get my head around the problem - how do you reference the tex...

show the keyboard of a textfield on top of the screen

In my iphone apps, my problem is that I have a textfield at the bottom of the screen, so when the keyboard appear, he hides the textfied, there is a way to show the keyboard on the top of the screen? thanks, Alex ...

iphone-sdk: Adding a textfield to UIAlertview does not work in iOS 4??

hi, i am trying to add uitextfield to my alterview. When the user tries to enter text the alterview is supposed to shift up a little bit so the keyboard does not overlap and when pressing the done key the keyboard is supposed to disappear and the alertview should shift back. It all works fine when run it in ios 3.1.2 (and also in 3.2) bu...

compare uitextfield input with responseData of ASITTHPRequest

Hi, I am writing an application for Registration form (with fields--> firstName, EMail, password, postalCode etc.,.). while, user enters value in first textfield(ex: firstName in my app), it should connect to the remote URL.. and check the user entered value with the responseData(0/1). (1)How to check 'firstName.text' (IB field) with r...

NSCFString or UIViewController !?

Hello, I am using UIViewController (a subclass of course) with a text field which sends an action when the contents changed (to the contentsChanged: selector of the ViewController). It is done by sending contentsChanged: to file's owner in IB. But when I test it, it says : "-[NSCFString contentsChanged:] : unrecognised selector sent to i...

How to add a listener to an MFMessageComposeViewController?

I am trying to send an SMS on an iPhone using MFMessageComposeVieController and I want to add a listener that recognizes when the SMS is sent (in other words, when the user presses "Send"). What is the syntax for this? For example, I know that with a textField, an example of a listener would be: [textField addTarget:self action:@select...

iPhone: Possible to dismiss keyboard with UITextField clear button?

I'm wondering if there is a way to have the UITextField clear button 'always visible' textfield.clearButtonMode = UITextFieldViewModeAlways; doesn't seem to work .. and if it is possible to dismiss the keyboard using the button? Thanks in advance. ...