Questions tagged uitableview

Explore the latest questions and answers asked by our top developers.

Uitable view cell duplicating issue swift

I am creating a chat application in which i am creating speech bubbles. The issue is cell is overlapped when scrolling uitable view. I have gone through many solution , but didn’t worked. My code follows: var cell:chatBubble? = tableView.dequeueReusableCell(withIdentifier:"cell1") as? chatBubble if cell == nil { tableView.register(UINib.init(nibName: "chatBubble", bundle: nil), forCellReuseIdentifier: "cell1") let arrNib:Array […]

By user2702179
Categorised as ios, swift, uitableview Tagged , ,

access stored values from a tableViewCell and save them to firebaseDatabase

I have a tableViewCell that has a range slider inside of it. I would like the values from the range slider to be saved to firebase when the user hits handleSave(). I can print out the values when the user slides the range slider inside the tableViewCell, but I cannot save this value from the […]

By zach wilcox
Categorised as ios, slider, swift, uitableview Tagged , , ,

Displaying and Playing MPMediaItem songs in retrieved + last played order

I’m building an app that makes use of MPMusicPlayerApplicationController to play music from a user’s local music library. The songs from the library are retrieved like so: func retrieveMusic() { mediaQueryQueue.async { let songsQuery = MPMediaQuery.songs() let songsCollections = songsQuery.collections for songCollection in songsCollections ?? [] { let songs = songCollection.items self.retrievedSongs.append(contentsOf: songs) } DispatchQueue.main.async […]

What is a good approach to sharing a data model between a table/collection view controller and its associated diffable data source subclass?

I have a UITableViewController with a model property declared in it. When migrating from UITableViewDataSource protocol conformance to a subclass of UITableViewDiffableDataSource outside of the table view controller, the model is no longer accessible in the data source. What would be a recommended approach to sharing a data model between the two, so say a […]

UITableView drag and drop a cell onto another cell?

I have a UITableView with a Drag and Drop delegate set up. I am able to drag cells between other cells in the UITableView but it does not seem like there is a delegate method for what happens if I drag a cell on top of another cell, in which case I want to combine […]

By aritroper
Categorised as drag-and-drop, ios, swift, uikit, uitableview Tagged , , , ,

tvOS: Unable to scroll through UICollectionView items when it is implemented like this: UICollectionView inside UITableView

I have implemented this: By following this tutorial. Here’s the problem: I am unable to scroll through the collection items. I think this has something to do with the fact that the project I followed is for iOS and my project is for tvOS. I’ve found a somewhat similar question. An answer linked to this […]

By Ahmed Ghrib
Categorised as ios, swift, tvos, uicollectionview, uitableview Tagged , , , ,

TableView Cells not formatting correctly unless image is cached

I am having an issue with my tableview, where the cells don’t orient correctly before an image is cached, and only once I return back to a page and my image is cached do they orient correctly. Here is an example of what I am talking about, the first image is when I first go […]

By Wana B3 Nerd
Categorised as image-caching, ios, swift, uitableview Tagged , , ,

Custom UITableViewCell does not display correctly

I created a custom UITableViewCell to use in a TableView. The cell appears correctly in the storyboard but when I display it in the TableView it appears completely jumbled. I have looked at similar questions however their problems seem to have been naming of outlets and Xcode bugs. What am I missing? UITableViewCell class ArticleLargeTableViewCell: […]

By Adrian Le Roy Devezin
Categorised as ios, swift, uitableview

How to display current time zones in a UITableView Cell

I’m trying to create a Time Zone App that would display the current time with each second counting up, I’m able to display the seconds on the label but all the rows display the same time. I tried appending the time zones with the current time to an array but I can’t figure out a […]

By Roger
Categorised as swift, timer, uitableview, xcode

Primary/Master – Table view with multiple levels

I’m trying to develop an app for both iPad and iPhone with split view controller where MasterViewController has a UITableView, let’s say folders. Selecting a row (a folder) from MasterViewController should show it’s sub items (sub folders & files). These should replace the original rows (folders) in Master view. Selecting a file should show its […]

By nmy
Categorised as ios, swift, uisplitviewcontroller, uitableview
1 2 3 8

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us