In Xcode 8.3.2 Swift 3.1, I have a UITableView where each row contains a label and a switch. I can manage the switches as a group (process the array), but what I would really like is to have a ValueChanged event fire in the parent UIViewController wh
My tableview cell subtitles aren't showing when I use this: func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { var cell:UITableViewCell? if tableView.tag == 1 { guard let latestCell = tableView.dequeueReu
I have CollectionView in TableView. everything ok but. when I want to navigate my cell to another viewController I got error func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath){ let storyboard = UISt
How can I scroll my table view to the bottom when using dynamic cell height? For some reason this code does not work in this scenario: [self.tableView scrollRectToVisible:CGRectMake(0, self.tableView.contentSize.height - self.tableView.bounds.size.he
I have a TableView having multiple custom cell. I want to add custom View on top of the cell runtime. I have cell like this. Now I want to add the HR Channel top view on the same cell runtime so that the it should look like this. As example : Think a
I have a layout in which I will have 2 UITableViews with custom cells. The second UITableView must be inside the first. My question is: how to delegate second UITableView? Can I delegate both to my ViewController? In that case it will use the same me
This question already has an answer here: Table view didSelectRowAtIndexPath, only works after selecting second click 1 answer So here's the thing: I implemented a UITableViewController with a custom cell.. Then i replaced the automatic segue cell to
What I actually want to do is to count the number of rows selected after selecting and deselecting the row. I get the total count but when I deselect the row I want to get count as how many other rows are still selected. My code is as follows //count
I've created an universal app in Xcode 6 and the iPhone storyboard has a UIViewController that contains a UITableView, it works fine. I made the iPad storyboard the same as the iPhone and added all the classes and elements but the UITableView is disp
I have 2 ViewControllers, each of which includes a scrollview (that shows several graphs) and a tableview. I'd like to update the tableview content based on the current graph displayed in the scrollview. The scrollview is managed by a separate class
I'm using a UItableview with a scrolling list. Now I have the default "load more" button that loads 10 objects at a time. It destroys the interface. Any ideas on how to customize it? A tried a few things but we no luck. ThanksTry implementing th
I have a relatively simple dialog/popup style UIViewController that isn't behaving correctly. I have many others just like it (though each with a unique button layout) that work just fine. For some reason that I cannot figure out, this controller is
I'm just practicing with UITableView. Here is what I did so far. made cells with xib.file from scratch. Data is stored in P-list. Using [ MutableCopy] and convert array into mutableArray It looks little strange but I made the delegate connection usin
I am trying to add a CALayer to the bottom part of my UITableViewCell to get a bit of a "shadow" effect. The problem is when the table is scrolled up and off the screen the layer is removed, so when you scroll back down it isn't visible. If you
I am currently building an iOS app that uses a UITableView with custom UITableViewCells that include a button. What I want to accomplish is having the UIButton's image change on touch up inside. That part is working fine, the issue is when you scroll
I'm have been trying to get the header of the table scrolling along with the UITableView. It's finally working, however, now there's a whitespace showing up right under the map view (see screenshot). I had difficulty getting the map in the table head
I would like to customize the delete button which is shown when performing the 'swipe to left'-action on a tableview cell. I currently set up a subclass of a UITableViewCell but also want to customize the delete-button which is being shown. My goal i
I have ipad app in which i am using tableView to show data but problem is that it does not show data in tableView here is code for setting cell value - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPa
Is there a reason why setting TableView.Frame on DialogViewController LoadView method doesn't seem to do anything? Currently to overcome this problem I set TableView.ContentInset for top and TableView.TableFooterView for bottom margins, but the probl
I have an array that gets created in viewWillAppear and the result in the console looks like this data SecArray........... ( ( "<NSIndexPath 0x7f17630> 2 indexes [0, 0]" ), ( "<NSIndexPath 0x7f96430> 2 indexes [1, 0]", &quo
My app has custom UITableView cells. I want to show only one cell at a time - next cell should show partially. In ScrollView you can set isPagingEnabled to YES. But how can i do above in UITableView? ThanksNote that UITableView inherits from UIScroll
I'm a iOS newbie, be gentle :) I need to populate a table view with a file system like structure with folders and files. The structures depth is dynamic. At the moment I reuse the same table view and reload it's data if a folder is selected to show t
we're not talking thousands of rows or anything, although if there was a way to make things scale up that high, I'd love it. I have a table with 27 sections and 180 rows spread across all sections, and the scenario I'm currently getting stuck in is w
Suppose I have a UITableView with two sections. If the data source for that section is empty I would like to display a placeholder cell with the text "Section Name is empty." How can I do that? Code - (NSString *)tableView:(UITableView *)tableVi
I'm trying to put image in UITableViewCell. I use SSMessages style for my messages. Tried something like cell.imageView.image = [UIImage imageNamed:message.messageText]; but it isn't work. Any suggestions? Maybe need my other code?Use SSMessageTableV
I've got your standard table application built right now. Window has a UINavigationController as its rootViewController, and that UINavigationController was initialized with its rootViewController as my custom UITableController. My applications table
I have one table view and each cell has one button after pressing button, button image got change but if I scroll tableview then button image comes in previous state how to avoid this problem.Store in an Array the state of the button, and when the ce
I am currently loading data coming from a JSON service in the viewDidLoad method in UITableViewController. The problem is that is the data takes time to be retrieved and parsed, the view takes time to be created. Where is the best place to load this
I'm attempting to implement a slide-in menu like in the facebook app. I have a NIB for a custom UITableViewCell, which includes a button. The button has an IBAction associated with it, in which I animate in a subview of my NIB (the delete/edit menu).
I have a root view controller that I'm adding a subviewcontroller to. Rootviewcontroller: I'm trying to add a value from a dictionary as the sole member of the moviewController.list NSMutableArray. However its not getting added and the NSlog is telli