Joble | Job Boards In Different Technologies | State Container library
kandi X-RAY | Joble Summary
kandi X-RAY | Joble Summary
This Platform Search Thousands Of Job Boards In Different Technologies From Over The World .
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get a specific carrer page
- Fix url_list
- Parse the results from the API
- Return the URL for the job
- Parse the response
- Returns the URL for the job search
Joble Key Features
Joble Examples and Code Snippets
Community Discussions
Trending Discussions on Joble
QUESTION
In Swift 3, I am trying to create a "Filter" view that lets the user filter posts in a table view by category and by date. Currently, the filter view is presented modally and is dismissed when you click "Done".
I have not set up the date/category functionality yet. First, I am just trying to get the tableView to update to show only 3
of the posts rather than 10
. To do this, I set destination.numPosts = 3
in my FilterViewController
.
Using print statements, it can be seen that the TableViewController
does in fact update its posts array in the viewDidLoad
function to have 3
posts. The numberOfRowsInSection
gets called and is correct. The numberofSections
always returns 1
. In viewDidLoad
, I tried self.tableView.reloadData()
and tableView.reloadData()
however, cellForRowAt indexPath
only gets called when you initially run the app and it does not call this when the data is reloaded.
Any ideas on how I can repopulate the table of posts when the FilterViewController
is dismissed?
Table View Controller:
...ANSWER
Answered 2017-Jan-03 at 16:07You have to call tableView.reloadData() manually. Currently you are only calling it in viewDidLoad() which means that it will be called only when the view is loaded.
Another Idea would be to call it in viewDidAppear() if you are modifying the data in another view (and the view has not been unloaded).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Joble
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page