Comments (9)
Could you post a snapshot of your constraints in xib? The cell doesn't self-satisfied most likely.
from uitableview-fdtemplatelayoutcell.
@sunnyxx Here are the snapshots of the cell xib (with auto layout contains)
from uitableview-fdtemplatelayoutcell.
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:
from uitableview-fdtemplatelayoutcell.
Now I have added constrains to content view. But, still the cell are returned empty.
When I run it on device (only empty cells are being displayed):
from uitableview-fdtemplatelayoutcell.
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.
Sure, I'll test it in a minimal demo and let you know.
from uitableview-fdtemplatelayoutcell.
@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.
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:
It's an obvious reason that you didn't adapt screen resolution by assigning a Launch Screen File in your project setting:
I figure it out that you even forgot to set table view's layout constraints in your HomeVC.xib:
It should be:
After all those corrections, cells are finally controlled by what you've set in xib file.
You must be more careful and try to review some Interface Builder's usages.
from uitableview-fdtemplatelayoutcell.
@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)
- 新手请教下关于xib使用 HOT 1
- 讨论下preferredMaxLayoutWidth HOT 2
- 优化高度计算fd_systemFittingHeightForConfiguratedCell HOT 1
- URL图片错乱问题
- 遇到一个问题,tableviewell做不定数量回复时出现bug
- - (CGFloat)fd_heightForHeaderFooterViewWithIdentifier:(NSString *)identifier configuration:(void (^)(id))configuration; HOT 2
- iphone6 plus 文字高度计算不精确
- 特别注意事项,该方法可解决你们超大难题 HOT 2
- 高度计算问题
- FD库能异步计算高度吗 HOT 1
- Archive HOT 1
- 针对RunLoop这块的处理,如果能封装到统一的工具类就好了,方便工程其他地方使用 HOT 3
- 使用autolayout, 加载本地数据, fd_systemFittingHeightForConfiguratedCell 方法中的contentViewWidth宽度 为0
- 使用缓存计算的方式页面上未显示的cell上的图片不就是提前加载了吗
- -fd_heightForHeaderFooterViewWithIdentifier: configuration: 方法没有执行回调,导致Header高度计算为0 HOT 2
- 😆大佬的框架好像没怎么维护了,我自己实现了一个类似的自动计算及缓存框架,逃~~,喜欢的小伙伴可以一起交流交流。 HOT 1
- 解决xibCell计算高度不准确问题
- 各位注意了deleteSections一次删除多个会导致缓存错乱
- Feature request - add a possibility to customize template cell creatation
- fd_systemFittingHeightForConfiguratedCell UITableView.contentInset != .zero,设置cell宽度有问题吧
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uitableview-fdtemplatelayoutcell.