Coder Social home page Coder Social logo

Comments (6)

atomkirk avatar atomkirk commented on May 23, 2024

Give me a bit too think on this

from mysforms.

atomkirk avatar atomkirk commented on May 23, 2024

So you want cell to change as they are typing or just on form load?

from mysforms.

tychop avatar tychop commented on May 23, 2024

If people enter multiple lines in a textview cell, It would be nice to have the cell grow while typing with the number of lines in the textview. So the complete entered text is visible without having to scroll. I am trying to let autolayout do it's work but haven't figured it out yet...

from mysforms.

tychop avatar tychop commented on May 23, 2024

I am getting closer to dynamic cell heights by removing

- (CGSize)collectionView:(UICollectionView *)collectionView
                  layout:(UICollectionViewLayout *)collectionViewLayout
  sizeForItemAtIndexPath:(NSIndexPath *)indexPath

from MYSFormViewController and use preferredLayoutAttributesFittingAttributes in my cell classes...

from mysforms.

atomkirk avatar atomkirk commented on May 23, 2024

Well, i wanted to take a look first, but i think the way i would go about it is by overriding the class method on the cell called sizeForCellWithElement or something like that. But im not sure if you would have to reload the page or what…  

i didnt know collection view cells were self sizing as well, i thought only table views in ios 8 did that. If so, once i decide to drop support for ios <8 then ill definitely do it that way.

The reason i based the forms on collection views was so that people could customize the layout of the form, so sublassing collectionviewflowlayout may be most "correct" way to solve this problem. But if youve got the project forked and are changing stuff up to make it work for you, have at it!

  • Adam Kirk

On Tue, Jan 20, 2015 at 11:52 PM, tychop [email protected] wrote:

I am getting closer to dynamic cell heights by removing

- (CGSize)collectionView:(UICollectionView *)collectionView
                  layout:(UICollectionViewLayout *)collectionViewLayout
  sizeForItemAtIndexPath:(NSIndexPath *)indexPath

from MYSFormViewController and use preferredLayoutAttributesFittingAttributes in my cell classes...

Reply to this email directly or view it on GitHub:
#5 (comment)

from mysforms.

tychop avatar tychop commented on May 23, 2024

Ok thanks. I'll see what I can do. If I have usefull addiditions to the framework, I'll let you know.

from mysforms.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.