Multi-line text field

283 views
Skip to first unread message

Michael Hoisie

unread,
Aug 3, 2011, 3:44:21 PM8/3/11
to IBAForms
Hello,

I'm trying to create a multi-line text field form. I'm trying to do
this by creating a custom IBAFormFieldStyle which has greater heights
than the standard ones. However, adjusting these values doesn't seem
to adjust the height of the container table cell. Is there a way to do
this?

- Mike

Sean Woodhouse

unread,
Aug 3, 2011, 6:14:44 PM8/3/11
to ibaf...@googlegroups.com
Hey Mike,

I've tried creating a multi-line text form field a couple of times, and it's a lot tricker than it seems. My most recent attempt was before the header/directory changes I made a while ago, so the branch merge is going to be a little bit of a pain. I can push the branch I was working on, and while it won't be using the latest codebase, it might give you some idea of what's involved. 

Cheers

Sean

Michael Hoisie

unread,
Aug 4, 2011, 12:13:09 AM8/4/11
to IBAForms
That sounds great - I could take what you have and try making it
work.

On Aug 3, 3:14 pm, Sean Woodhouse <s...@ittybittyapps.com> wrote:
> Hey Mike,
>
> I've tried creating a multi-line text form field a couple of times, and it's a lot tricker than it seems. My most recent attempt was before the header/directory changes I made a while ago, so the branch merge is going to be a little bit of a pain. I can push the branch I was working on, and while it won't be using the latest codebase, it might give you some idea of what's involved.
>
> Cheers
>
> Sean
>

Thomas Elstner

unread,
Sep 1, 2011, 11:23:31 AM9/1/11
to IBAForms
Hi,

are there any updates on this? If not, I would like to give it a try,
but I cannot find the branch with the code Sean mentioned above.

Best regards,
Thomas

Sean Woodhouse

unread,
Sep 1, 2011, 11:36:18 AM9/1/11
to ibaf...@googlegroups.com
Thomas, I just pushed the changes I had in to multilinefield_v2. It's was a work in progress I haven't touched in many months, so I don't really have my head in it right now to help finish it off.

Good luck with it :-)

Cheers

Sean

Thomas Elstner

unread,
Sep 2, 2011, 12:52:21 AM9/2/11
to IBAForms
Thanks, I will have a look at it during the weekend.

On 1 Sep., 17:36, Sean Woodhouse <s...@ittybittyapps.com> wrote:
> Thomas, I just pushed the changes I had in to multilinefield_v2. It's was a work in progress I haven't touched in many months, so I don't really have my head in it right now to help finish it off.
>
> Good luck with it :-)
>
> Cheers
>
> Sean
>

Thomas Elstner

unread,
Sep 4, 2011, 5:00:03 AM9/4/11
to IBAForms
Done (see http://www.flickr.com/photos/teeqemm/6111293795/) - do you
have any idea where to deduce those 44.0f for the minimum height of
the UITextView? It's probably not a good idea to have a constant
here ;-)

Costa

unread,
Sep 10, 2011, 10:02:39 PM9/10/11
to IBAForms
Hi, Thomas,

Any chance of seeing the code?
Thank you.

On Sep 4, 7:00 pm, Thomas Elstner <thomas.elst...@xonion.net> wrote:
> Done (seehttp://www.flickr.com/photos/teeqemm/6111293795/) - do you

frank van vliet

unread,
Nov 1, 2011, 7:08:44 AM11/1/11
to IBAForms
same question here, any chance of seeing some example code from
anyone ?

thanks
Frank

Alex

unread,
Nov 16, 2012, 8:39:24 AM11/16/12
to ibaf...@googlegroups.com, fr...@yellowpond.nl
yes, which fork has such function, I also want it. Thanks. :p

Joseph F

unread,
Jul 24, 2013, 2:35:51 PM7/24/13
to ibaf...@googlegroups.com
I know it's been a while, but any chance you could share? This would be quite useful.

Thomas Elstner

unread,
Aug 1, 2013, 8:09:14 AM8/1/13
to ibaf...@googlegroups.com


I'm sorry - in the meantime I did a complete reimplementation of IBAForms which now uses a UICollectionView for multicolumn display and ARC, so there is not much code left I could share.
Thomas

jesse....@gmail.com

unread,
Aug 2, 2013, 1:32:27 AM8/2/13
to ibaf...@googlegroups.com
What about sharing your reimplementation using UICollectionView ?


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

Thomas Elstner

unread,
Aug 6, 2013, 5:24:25 PM8/6/13
to ibaf...@googlegroups.com
Well... that's not an option right now (legal issues, no idea if and how to license it, time available to support this etc.)... BUT I have found an email containing a older/compatible snapshot of my modified/hacked version of IBAForms sent to Chris McGehee, who was considering to merge it back.
Anyway, here it is:

On Thursday, February 23, 2012 at 12:14 AM, Thomas Elstner wrote:

Hi Chris,

Seans changes were quite incomplete, as they completely ignored the layout information provided by the FormFieldStyle (i.e. Label positioning), also there were some issues with the calculation of the cell's height, which might be the problem you're experiencing.
In the meantime I've implemented a couple of additions to IBAForms (IBACameraFormField, IBASubFormField) and  refined some of the existing controls (i.e. proper placement of the cancel button, use of a multiselection pickerview instead of a tableview in IBASinglePickListInputProvider,layout fixes for the input providers etc.), so it would take some time to create a fork at Github and merge back all my changes, but if you are willing to do this job, I will happily share my code with you.

Best regards,
Thomas

The code for calculating the cell's height is still somewhat dirty (there are assumptions on the cell's width), but for most use cases it should be fine - I have solved those issues in my reimplementation by switching to autolayout and by replacing labelFrame and valueFrame with a couple of vfl statements.

Again, pls note that this is a rather dirty hack (I have fixed quite a lot of issues when reimplementing this) and I cannot really afford the time to support it or fix any issues in this rather old version.

Best regards,
Thomas
IBAForms.zip

Joseph F

unread,
Sep 9, 2013, 5:50:49 PM9/9/13
to ibaf...@googlegroups.com
Thank, Thomas. I'll play with it and see what I can manage. This will be a helpful start.
Reply all
Reply to author
Forward
0 new messages