Questions tagged [uitableview]

UITableView is an essential component in iOS development that enables users to conveniently view and modify various lists of information. Its functionality lies in presenting data items within a singular column layout, ensuring a smooth and visually pleasing user experience. By inheriting from UIScrollView, UITableView grants the capability for seamless vertical scrolling, unlocking further convenience and ease of navigation.

Sending the "accurate" data from the specific cell in a UITableViewController to a ViewController

I'm encountering the same issue here. I am struggling to pass the precise data from one TableViewController to another ViewController. Even though I have all the necessary data from JSON, when I select a row, it displays the data from the last row instea ...

What’s the best way to incorporate a UIActivityIndicatorView while executing a search operation?

I created an app for reading articles that fetches data from a server in JSON format and loads it into a UITableViewController. When users perform a search, there is a delay in loading the search results into the UITableView. I am struggling to incorporate ...

Unable to View JSON Feed in Tableview

I'm facing an issue with data display on a tableview. Despite confirming that I can access the data, actually showcasing it is proving to be problematic. The source of this challenge lies in displaying a JSON feed retrieved from an API, which is accessib ...

What are some strategies for managing two APIs in a single UIViewController?

I have a single ViewController containing an UIImage and two UITextFields, along with one UITableView. The data to populate these UI elements is fetched from an API. The first API provides the data for the UIImage and UITextFields, while the second API fe ...

Having trouble loading my array from JSON into the UITableView

The .h file includes @interface HomeTVC : UITableViewController @property (nonatomic, strong) NSArray *spotTitle; while the .m file contains #import "HomeTVC.h" @interface HomeTVC () @end @implementation HomeTVC - (id)initWithStyle:(UITableViewStyl ...

At first, struggling to dynamically adjust the height of a collection view based on JSON data in a Swift project

Within a tableview cell, I am utilizing a collection view. When I return homeData?.result?.category_json?.count ?? 0 to populate the collection view with JSON data, the height of the collection view does not adjust dynamically at first. However, when I scr ...

Incorporate a refresh button into the JSON table view that includes an activity

How can I implement a refresh button in my app that displays an activity indicator when pressed? I have written the following code: In this app, I am using JSON to retrieve data from a server and I want users to see updated content when they press the re ...

What is the best approach for generating individual variables for every row in a React table?

Presently, I am developing a dynamic table using react and the structure is as follows: <TableBody> {finalLoadedTokensData.map((loadedToken, index) => { const isItemSelected = isSelected(loadedToken.contract); const label ...

Is there a way to showcase multiple TableViews from a Json File using Swift?

I am looking to populate a TableView in Xcode (Swift) with information from a Json file. To illustrate, here is what I aim to achieve: My goal is to extract json data regarding countries, cities, and additional city details. On the initial screen, I want ...

Displaying data from a remote JSON source in a Swift tableView

I am facing a challenge in populating a tableView with remote JSON data. The fetchRecentPosts method is responsible for fetching the data asynchronously, and it is called within the viewDidLoad method. However, the issue arises because the table view does ...

"Implementing a UITableView alphabetical index feature for efficiently displaying vast amounts of

My current project involves loading data from a webservice that returns JSON data into a table. To handle the large amount of data in the database, I implement dynamic loading when the user scrolls down. One challenge I am facing is whether it would be fe ...

What is the recommended dispatch_async method for populating a table view controller with JSON data?

I have some JSON data that I need to display in a table view. What is the best approach for fetching and loading this data in the background using dispatch methods or child threads? ...

The NSException thrown by the TableView

Just diving into Swift and trying to parse JSON using ObjectMapper for displaying data in a TableView, but encountering an issue: libc++abi.dylib: terminating with uncaught exception of type NSException The error occurs after the method numberOfRowsInS ...

Struggling to place a Fab Button within a UITableViewController

Issue: I have a specialized class that extends a UITableViewController. My goal is to position a Fab button from Material within the view. However, the problem arises because the controller's superview is a UITableView, and not a basic UIView. This r ...

Unveiling the hidden gems: Retrieving data from JSON in Swift for iOS9

I am facing a challenge with extracting specific values from JSON data retrieved from a server. The data is structured in such a way that the values are nested within another dictionary, making it difficult for me to access them. I am looking to extract th ...

Proper approach for mapping JSON data to a table using the Fetch API in a React.js application

Struggling to map some elements of JSON to a Table in Customers.jsx, but can't seem to figure out the correct way. How do I properly insert my Fetch Method into Customers.jsx? Specifically managing the renderBody part and the bodyData={/The JsonData/} Fet ...