Create IBATextFormField already with a value in the TextField

30 views
Skip to first unread message

Vinicius Albino

unread,
Mar 20, 2013, 3:42:43 PM3/20/13
to ibaf...@googlegroups.com
Im trying to create a IBATextFormField, but already with a value in the TextField, wich the user can edit :

        IBATextFormField * nomeF = [[IBATextFormField alloc]initWithKeyPath:@"nome" title:@"Name"];
        [basicFieldSection addFormField: nomeF];
        nomeF.textFormFieldCell.textField.text = @"Nome";


but dont seens to work, any suggestions?

Sean Woodhouse

unread,
Mar 20, 2013, 4:20:44 PM3/20/13
to ibaf...@googlegroups.com
Rather than set the text in the textField directly (your last line), set the value in the model object property you're binding to the field (i.e. the 'nome' property).

Cheers

Sean

--
You received this message because you are subscribed to the Google Groups "IBAForms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ibaforms+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Vinicius Albino

unread,
Mar 21, 2013, 9:37:56 AM3/21/13
to ibaf...@googlegroups.com
Ok, can you show some code example?
I get the logic, but not how exactly how to use it.
Thanls
Reply all
Reply to author
Forward
0 new messages