Comments (9)
are you asigning the new data to the datasource? When you do that it should happen right away. For instance, on your DatasourceController you should do the following.
self.datasource = usersDatasource
if that does not work and I wouldnt know why, you could try:
collectionView?.reloadData()
from lbtacomponents.
hi,
I already doing the same what you suggest but it's not reloading data in my cells.
from lbtacomponents.
LBTAComponents
Is there any method to reload DatasourceConstroller from scratch ??
from lbtacomponents.
hi
I would like to reload my data in DatasourceController when the user clicks on the refresh button.My Datasource shows changing in debug but no effect on collection layout views or Cells.
self.datasource = usersDatasource
if that does not work and I wouldnt know why, you could try:
collectionView?.reloadData()
Yes, i have tried it but no luck its shows old values on reload. If you allow me I can share my source code with you that will help to share my issue clearly. I trying to using your LBTAcomponents in my project this is my first project but I stuck on my first screen.
from lbtacomponents.
Share your DataSource Code... you have to be missing something. The example project in the repo has some examples with basic usage of the library
from lbtacomponents.
from lbtacomponents.
from lbtacomponents.
You just need to update the datasource object and call reloadData. You can look at the pod source code to see whats going on.
from lbtacomponents.
I am also have same issue. In my case I have an API call minor number changes from ViewDidLoad API.
I set the dataSource "self.datasource = usersDatasource", "self.collectionView?.reloadData()" in DataSourceController when api is success. But no luck It is not reload.
from lbtacomponents.
Related Issues (20)
- How to register Nib file ?
- Why extending UICollcetionViewController? HOT 7
- UIView not showing up HOT 1
- Can't Access files HOT 1
- how to assign optional contraints through anchors HOT 2
- Optional constraints HOT 1
- DatasourceControllerDelegate? HOT 1
- Type 'NSAttributedStringKey' (aka 'NSString') has no member 'paragraphStyle' HOT 2
- Dynamiclally change Datasource items number HOT 1
- Multiple API request on same datasource HOT 2
- VFL with Safe Area HOT 1
- Video tutorial playlist on YouTube
- No such module 'LBTAComponent' HOT 1
- Can't reload DataSourceCell from DataSourceContoller HOT 1
- Not running well under Swift 4 HOT 3
- Swift Problem? HOT 2
- Conversion to Swift 4.2 HOT 2
- Allow branch creation and pull requests? HOT 1
- Update to Swift 5 HOT 6
- UITextViews not rendering on LBTAFormController HOT 1
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 lbtacomponents.