I have the following code
// Breakpoint here
[label removeFromSuperview];
[label release];
label = nil;
stepping through it with the debugger outputs
(gdb) po [self subviews]
<NSCFArray 0x476af70>(
<UIImageView: 0x47581a0; frame = (0 0; 232 81); opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x476b3d0>>...
I am using the plist to store the data entered in the UITextFields. But, when I restart my application all the data entered previously was deleted. How can I retain the data in the Plist. I have a UITableView and when a cell is touched a view appears with two UITextFields. nameField and descriptionField. I stored the data in this way.
M...
I have a xib. the xib has a button that swaps another xib.
the second xib has a uitextfield and a uilabel.
how do I make the keyboard go away when I'm done typing? what do I need to wire or code? the second xib has it's own class (called CustomSign.m)
Inside CustomSign.m, I've implemented the following method
-(void)textFieldDidEndEd...
I have a simple UITableView that has two cells. Cell 0:0 consists of a UITextField we'll call the title and Cell 0:1 consists of a UITextView we'll simply call a note. Cell 0:0 (the text field) is a standard size, one row cell. I'm therefore trying to fill the rest of the screen up with Cell 0:1 so I return a larger height for it. This a...
I have a model-view-controller design app with more than 20 views and imageviews.
In one view, I have a textfield that gets set to first responder when the view displays such that the keyboard is immediately visible. When I push this view onto the navigation controller the display of the keyboard is very slow and jerky. However, when ...
Hello,
Can somebody post the code (simple one) which shows the use of KeyboardwillhideNotification ? Thanks in advance.
...
Is it possible to detect at what text position the user tabs into a UITextField (just tabbing not editing, the text field is read-only)? E.g. by capturing the touches began event and then processing the tabbed position?
...
Hello,
How to programmatically add UITextField on UIView in iPhone programming?
UITextField* text;
UIView* view = [[UIView alloc]init];
[view addSubview:??????];
Thanks in Advance
...
When I try to get the text of a UITextField it returns a random integer. Here's the code I used:
NSLog(@"Field Text: %d", field.text);
field being the UITextField. And in the debugger it returns an random number, for example 29876208 when there is text in the UITextField.
...
How do you catch the "Enter" key event on a UITextFIeld on the iPad?
...
Ok, I know this seems like a duplicate question, but don't think it is. I actually have this implemented already (thanks to this SO question), but it seems sluggish. I am willing to tweak it a bit, but I ran across a demo app by AboutObjects that seems to have exactly the right functionality with absolutely no code doing it. I have looke...
I have noticed in a number of apps they let you see a zoomed in view of where you are dragging just like the way it is on a UITextField (screenshot attached) but it works over images etc.. Does anyone know if there is an easy way to achieve this? Since a number of apps use it I figured that there might be something built in or an easy w...
This has to be some kind of newbie blunder that I just cant see, and Id be grateful for hints as to what to check or where to look.
I've followed an iPhone tutorial that has a UITextField, making sure I connected the IBOutlet for the text field, and it seems to compile properly (no errors or warnings). But when I run it under the simula...
hello all i am working with multiple uitextfields.i have a problem in cursor placing while changing firstResponder. i would like to do "Cursor placement in 2nd field once we entered the 3rd character in the 1st field." but the cursor stays in 3rd place.here i am restricting my first text field length to 3.
...
I want to turn auto-correction on/off based on the content in the text field.
For example, if the user is typing a phrase like "Machine tools" I want auto-correction to be on (for the rest of the words she's gonna type) but if I sense the beginnings of - say - a web address like "www.mach.." I want to turn auto-correction off.
I tried ...
I'm using iphone cookbook code to prompt a user for text in a UIAlertView. The cookbook code is available at
http://github.com/erica/iphone-3.0-cookbook-/tree/master/C10-Alerts/03-Soliciting%20Text/
In my AppDelegate, applicationDidFinishLaunching(), I invoke as below
NSString *str = [ModalAlert ask:@"what is your name?" withText...
I cannot find how to a text field group, similar to what is in the Address Book app:
Can someone tell me what I am doing wrong? I can't find an option to make them look this way.
Also, does anyone know the font, font size and color?
...
Is there a way to remember what the user put into a UITextField and have it displayed the next time they come to that UITextField? i.e. - have them input their name the first time they come to the "Name" UITextField but have that name already displayed in that field the next time they come across that UITextField?
I want the name to st...
I'm adding some user feedback mechanism into my app. The user types some comments into a text field and when that editing is done it updates a UITextView. Then when the user hits the submit button and moves on in the app the user may have need to send more feedback from the same form for a different item. I can reset the other fields ...
I am writing a program where I where the first time a user runs it - they will have to fill out about 10 different UITextFields. I am trying to save the fields so that on subsequent runs of the program that whatever they previously put will already be displayed in those UITextFields so the wont have to re-input it in - unless they want ...