Git Product home page Git Product logo

Comments (9)

sunnyxx avatar sunnyxx commented on July 30, 2024

Could you post a snapshot of your constraints in xib? The cell doesn't self-satisfied most likely.

from uitableview-fdtemplatelayoutcell.

sahil263 avatar sahil263 commented on July 30, 2024

@sunnyxx Here are the snapshots of the cell xib (with auto layout contains)

screen shot 2015-06-05 at 9 00 16 pm
screen shot 2015-06-05 at 9 00 55 pm
screen shot 2015-06-05 at 9 00 46 pm
screen shot 2015-06-05 at 9 01 03 pm
screen shot 2015-06-05 at 8 59 33 pm
screen shot 2015-06-05 at 9 00 27 pm

from uitableview-fdtemplatelayoutcell.

sunnyxx avatar sunnyxx commented on July 30, 2024

Actually, there's no constraint against content view, as README said, you must have top, left, bottom, right for at least 1 constraint against content view, which looks like:
Correct constraints

from uitableview-fdtemplatelayoutcell.

sahil263 avatar sahil263 commented on July 30, 2024

Now I have added constrains to content view. But, still the cell are returned empty.

screen shot 2015-06-06 at 5 41 45 am

When I run it on device (only empty cells are being displayed):

c6f3057c92e376eaa4b57b520496fb8ba15dde90f7ecb2d77fpimgpsh_fullsize_distr

from uitableview-fdtemplatelayoutcell.

sunnyxx avatar sunnyxx commented on July 30, 2024

Would you try it in a minimal demo? If still not work, post it into a repo and I'll check it out for you, I think there's still something wrong with your constraints or how to use this tool, xib works in my demo.

from uitableview-fdtemplatelayoutcell.

sahil263 avatar sahil263 commented on July 30, 2024

Sure, I'll test it in a minimal demo and let you know.

from uitableview-fdtemplatelayoutcell.

sahil263 avatar sahil263 commented on July 30, 2024

@sunnyxx I have prepared a demo project (with xib, please check under my repo).

Earlier the screen short I posted above UITableViewCellAccessoryDisclosureIndicator and UITableViewCellAccessoryCheckmark accessoryTypes were being displayed.

Now they are also not being displayed.

Please let me know, once you check the code.
Thanks!

from uitableview-fdtemplatelayoutcell.

sunnyxx avatar sunnyxx commented on July 30, 2024

There're terrible several things you didn't get fully understood.
First, In your HomeVC, cells in xib are not registered by "-registerClass:forCellReuseIdentifier:", it should be:

 [self.homeTableViewOutlet registerNib:[UINib nibWithNibName:@"HomeCell" bundle:nil] forCellReuseIdentifier:@"FDFeedCell"];

Then cells appear, but quite weird:
2015-06-06 7 38 13

It's an obvious reason that you didn't adapt screen resolution by assigning a Launch Screen File in your project setting:
2015-06-06 7 41 07

Then it still looks weird:
2015-06-06 7 42 14

I figure it out that you even forgot to set table view's layout constraints in your HomeVC.xib:
2015-06-06 7 44 03

It should be:

2015-06-06 7 44 16

After all those corrections, cells are finally controlled by what you've set in xib file.

2015-06-06 7 46 17

You must be more careful and try to review some Interface Builder's usages.

from uitableview-fdtemplatelayoutcell.

sahil263 avatar sahil263 commented on July 30, 2024

@sunnyxx Yes, I see the mistakes which I made. It's working now...
Thanks a lot, for your help. I appreciate your effort. Thanks once again!

from uitableview-fdtemplatelayoutcell.

Related Issues (20)

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.