Questions tagged [reloaddata]

This tag covers reloadData methods on UITableView, UICollectionView and NSTableView in Apple's UIKit and AppKit frameworks. Do not use it outside the context of Apple frameworks.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
30 views

Changing country returns Unexpectedly found nil while implicitly unwrapping an Optional value

The user can change the country since the app is based on multiple locations. Once a new country is chosen the HomeViewController should reload emptying all previous data and loading new data from the ...
0 votes
2 answers
98 views

Expandable table view bug

I have expandable table view cells, everything works, except animation. I have one cell with UISwitch, when I tap on it, other cells appear but with some view movements, same thing when I hide these ...
0 votes
0 answers
73 views

How to update the collection view section header height as per the content size on some event?

I'm having issues with the dynamic height of the collection view's header on tab change. I have a collection view of multiple sections. In one of the header sections, I'm using a segment view with two ...
1 vote
1 answer
196 views

UICollectionView with dynamic sizing cells resets Content Offset on reloadData on iOS 13/14

We successfully created UICollectionView with dynamic sizing cells. The initial layout is perfect and the cells look good with no warnings. But when we use reloadData after selection occurs the ...
  • 5,574
0 votes
1 answer
36 views

The app crashes when I try to add a picture to my favorites collection. Swift

When I add an image from the TattooIdeas screen to a collection in the FavoriteTattooIdeas screen, the application crashes with the error "UICollectionView must be initialized with a non-null ...
0 votes
1 answer
77 views

App Crashes when reloadData() gets called in a custom SelfSizedTableView

I’m having a crash happens when reloadData() gets called in a custom SelfSizedTableView , any idea why? and how to resolve it? SelfSizedTableView: import UIKit open class SelfSizedTableView: ...
0 votes
1 answer
105 views

collectionView doesn't reloadData in viewDidLoad but it works in viewWillAppear

I showed a viewController named NewOrderVC from a tab bar with this code: if let selectedAnn = mapView.selectedAnnotations[0] as? StoreAnnotation { let id = selectedAnn.storeModel!.id ...
2 votes
0 answers
270 views

SwiftUI, custom list does not refresh when items are deleted

I have a custom list I built to show historical searches that pulls from a Core Data store. The custom list is essentially a VStack with a ForEach loop. I had to rebuild the list as custom, instead of ...
  • 167
2 votes
1 answer
73 views

Can't combine UIImageView rotation animation and tableView section reload

I have 4 sections, each section have 2 nested rows. I open the rows by tapping on each section. Here is how my initial data looks like. It has title, subtitle and options (which is what nested rows ...
0 votes
1 answer
100 views

Why isn't reloadData() not working after deleting cells in collection view?

Basically Im pressing the delete button to delete all the cells and when I call the reloadData() it doesn't clear the cells. The only way the cells get cleared is when I leave the collection view ...
user avatar
0 votes
1 answer
60 views

UITableView not reloading data when SearchBar is Canceled

I have a SearchBar on my tableView. It is correctly working when typing to search through the table view. However, when the cancel button is pressed, the tableView is not reloading the data. -(void)...
0 votes
0 answers
211 views

Reload component state in iframe in ReactJS

I have this schema of application architecture: -- main page (lot of react components) ----- iframe 1 (lot of react components) -------- iframe 2 (lot of react components) ---------- iframe 3 (lot ...
0 votes
1 answer
588 views

Invalid update: invalid number of rows in section 0 with NSFetchedResultsController

I have 2 ViewControllers: VC1 populates its tableView based on CoreData attribute isPicked, which is bool and show only items with true state. VC2 is a second Modal (not Full Screen) View Controller ...
2 votes
1 answer
263 views

Refresh Core Data in ViewController when Modal View (2nd VC) is Dismissed

I have 2 ViewControllers: VC1 populates its tableView based on CoreData attribute isPicked, which is bool and show only items with true state. VC2 is a second Modal (not Full Screen) View Controller ...
0 votes
1 answer
577 views

Why UICollectionView ReloadItems always calls CellForItemAt twice for each item?

Why UICollectionView ReloadItems always calls CellForItemAt twice for each item? And how to prevent duplicate calls? How to prevent spending double resources for reloading of selected cells? ...
0 votes
0 answers
294 views

How to correctly update CollectionView, when I swipe UIScrollView

I need to resolve problem: my Views into CollectionView not updating correctly when I swipe UIScrollView. I want to get update after scroll complete, but instead my View are updating every time when ...
1 vote
1 answer
122 views

Reload an array of objects depending on search input value using React Hooks

I want to reload an array of objects and make it appear based on the search input value. For example, there's a search input and a list of reviews(title + comment). When the user types "a" ...
0 votes
2 answers
259 views

Swift TableView Contents Disappear and Flash When Reloaded

I'm building a chat app with a table view of various channels that people can chat on. If a new message (channel) comes in, I update my data store, and then reload the table view. In this particular ...
  • 2,949
0 votes
2 answers
110 views

Moving rows with NSFetchedResultsController (Swift)

Why exactly doesn't this work? When the tableview reloads data, the objects move to their original position override func tableView(_ tableView: UITableView, moveRowAt sourceIndexPath: IndexPath, to ...
user avatar
0 votes
0 answers
52 views

Swift - Building instagram-like user certification tableview for comments

I'm building an Instagram-like certified-user feature on comments page. For each comment, I need to check if the comment uploader is a certified user, and add user's certification icon right beside ...
  • 25
1 vote
0 answers
134 views

UITableView can not reload data or set value to cell when scrolling or touching?

For now I connect tableview with my socket connection (real time data ), Tableview will reload data every time that received new data ( about every 2 seconds ). It working normally, but when I touch ...
1 vote
0 answers
58 views

How to use search in icarousel current index item?

Hey all I am just wondering how can I use a search bar to reload data in carousel item without reloading all other items? below is the code for the carousel: to Note the concerned one is if == "...
0 votes
2 answers
204 views

cellForItemAt not being called after collectionView.deleteItems

I am successfully deleting items from my collectionView and datasource, but cellForItemAt is no being called after the delete, so my indexes are getting messed up. Even if I manually call ...
0 votes
0 answers
120 views

unknown behavior when reloading the current page using javascript

After performing some update using javascript XMLHTTPRequest I use: location.reload(true); In order to get the updated page but it did not work, only if refresh manually to remove the cache! but if I ...
0 votes
2 answers
248 views

Problems to reload TableView with tableView.reloadData()

I'm relatively new to programming with swift and have a question that i just got stuck with. I have a TableView Controller in which you can enter the names of films. If you press the "Done" ...
  • 1
0 votes
2 answers
201 views

How can I reinitialize a UITableViewCell in Swift?

I am using a UITableViewCell to show data. When the view loads, the data is empty, however once the api call is complete I want to reinitialize the UITableViewCell so that the data can appear. I am ...
0 votes
0 answers
180 views

Update Collection View after saving a new entity to Core Data

I am having difficulties updating the collection view, after saving new entity object to persisentContainer. I have to reload the application to see the new data. Ive read similar questions, but they ...
0 votes
0 answers
287 views

iOS tableViewCell is not updating after reloading the tableview even after setting the properties properly

I've been trying to figure out a problem in my code but no luck finding a solution. I have a dropdown library which I'm using for dropdown the library is ios Dropdown 1: https://github.com/AssistoLab/...
1 vote
2 answers
274 views

UICollectionView numberOfItemsInSection not being called on reloadData() - Swift Xcode

I have two view controllers – SecondTestViewController and SecondContentViewController. SecondContentViewController is a floating panel inside SecondTestViewController. SecondTestViewController has a ...
0 votes
1 answer
1k views

Button flickering when reloading data in CollectionVIew

I am updating the category image by button tap in the collection view. I have a collectionView that has fade-in animation when the button tapped and the image changes. I also tried to use reloadItem, ...
  • 126
0 votes
1 answer
30 views

UiView with TableView and CollectionView not refreshing randomly

I have a UIView that contains a CollectionView and a TableView, both shows data from a service, but sometimes randomly when I enter on this UIView the data is not showing, I am using self....
  • 13
0 votes
0 answers
34 views

Power BI - How to drop data before uploading the report to the Reporting Server

Is there any way to drop data and publish the report to the reporting server? On the reporting server we want to have scheduled refresh for the data. Right now, the scenario is like we are picking ...
  • 244
0 votes
1 answer
42 views

How can I prevent redrawing when new data arrives using collectionview.reloaddata in swift5?

I've been working with Swift and iOS for several months now. I want to download a new image when it comes to CollectionView's penultimate item. I'm downloading, but the reloadData function is ...
0 votes
1 answer
2k views

How To Update All The Visible UITableViewCell Every Time A New Row Appears

I want the UITableView's refreshing to be triggered by a new cell's appearing. Simple setup. UITableView, dataSource is [Double]. Each row in the table will present one number in the array. The ...
  • 111
0 votes
1 answer
335 views

iOS swift: UICollectionview horizontal scroll single cell not reloading

In my application UICollection scroll horizontally. collection-view cell two button and one UIView was designed. Each cell loaded two button. when user click one button the particular cell should be ...
  • 639
0 votes
2 answers
162 views

UITableView reloadRows() called by action button inside custom UITableViewCell always lags one step behind

I have a UITableView and I made a custom cellview to add a button inside each cell, the button is supposed to change its color when clicked. Although the data is updated and printed correctly, the ...
0 votes
1 answer
151 views

How to add data to the tableView and reload?

I'm trying to add a cell to a tableView that's in viewController by sending data via a segue from another viewController. class FavoritesViewController: UIViewController { var shops = [ ...
0 votes
1 answer
115 views

UITableView reloadData() not working in swift?

I have a tableView which I am trying to populate from Firebase, but I have a problem with reloadData(),it does not refresh the table. This is my code: func showAnswers(pos: Int, name: String){ ...
  • 357
3 votes
1 answer
975 views

Main Thread & Collectionview.reloadData()

I have a situation where the code change its collectionView data source then call reloadData() several times and i think this cause my app to crash due to the race condition as the data source change ...
0 votes
0 answers
30 views

First UITableView housed in UITabBarController won't reload from array, but other views will

I have a UIViewController (accessed via segue) which contains a hidden UITabBarController (revealed when a button is pressed). The UITabBarController contains three UITableViews, each fed by their own ...
0 votes
0 answers
56 views

Table View Not Updating After Reload and NSNotification

I use NSNotifications to call refreshChats when a user leaves a group chat. This updates User.current.groups (works correctly I've tested) so refreshChats should observe all the groups expect the ...
  • 63
0 votes
1 answer
42 views

How can I empty my cell data inside a table view by pressing a button outside the table view?

I have a table view in my app with 4 different types of cells in it. I would like to be able to press a button in the nav bar (a clear button) and be able to empty the data in my cells. Some of my ...
2 votes
0 answers
257 views

collection view arrow button changes every reload data-which create unequal

edit the question- in the storyboard the uibutton's image changes according to selected and default state, and even in loading not all buttons look same *@IBAction func topButtonTouched(_ sender: ...
  • 21
0 votes
1 answer
502 views

Getting a to do app to update or refresh, after clicking the save button

Before starting just want to say that this is quite a long entry. Have been having issues with table views and buttons and textfields. The main thing that me trying to do is create a to do list and ...
  • 11
-1 votes
2 answers
152 views

Swift reconfigure collectionview cells

so I am trying to change the background color of the collection view cell that is clicked, however, when I call the CollectionView.reloadData() method the backgrounds don't change. I am thinking that ...
0 votes
0 answers
108 views

Swift - CollectionView Inside View Controller - Data Exchange between them

I am new to Swift programming, been using it for about 3 months now and this is my first attempt in iOS app development. I am trying to create a calendar based appointment booking app. All the ...
  • 1
-1 votes
1 answer
499 views

Swift UITableView reloadData() method unexpectedly found nil error

I'm trying to create a very simple todo list app in swift and when I call the reloadData method on my UITableView I get this error: "Unexpectedly found nil while implicitly unwrapping an Optional ...
0 votes
2 answers
479 views

UITableView not updating data

I have trying for sometime to make the "reloadData()" work but it is not working. I've even tried "DispatchQueue.main.async{self.tableView.reloadData()}" Below is the code import UIKit import ...
1 vote
1 answer
130 views

form values lost if captcha error in codeigniter php

I have created a website in php, the website has a signup form and google captcha in it. If the captcha is correct the form will submit successfully. If the captcha is wrong the same page will reload: ...
user avatar
0 votes
1 answer
218 views

TableView doesn't refresh when created programmatically

I programmatically created a UITableView that fills with data that I fetch from an API. When I fetched the data asynchronously, I try to update my table view—but it does not update. I first create a ...
  • 871

1
2 3 4 5
14