FAQ Database Discussion Community
ios,objective-c,uitableview,cocoa-touch
I'm using an ECSlidingViewController (github hamburger-menu/slide-out menu project). I have a TableViewController, and I need to add the following to my TableViewController. ECSlidingViewController *ecsVC = (ECSlidingViewController *)viewController; ecsVC.panGesture.delegate = self; [self.view addGestureRecognizer:ecsVC.panGesture]; I cannot do self.navigationcontroller.view addGestu..., because if I push a view, then I still get the pangesture functionality...
ios,objective-c,uitableview
I have a tableview which shows data. But i want to customize the cells and i need a little help. So i have a nib for the tableview (HistoryViewController.xib). I just added the class and nib to customize the tableview cells (HistoryViewTableCell). What are the steps i have to do...
ios,objective-c,uitableview
I'm using insertion into my UITableView with this : Skill * newSkill = [[Skill alloc] init]; newSkill.name = @"Nouvelle compétence"; newSkill.pathPicto = @"generic"; [self.skills insertObject:newSkill atIndex:0]; NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0]; [self.tableView beginUpdates]; [self.tableView insertRowsAtIndexPaths:@[indexPath]withRowAnimation:UITableViewRowAnimationTop]; [self.tableView endUpdates]; It works great but now I want that the inserted cell be...
ios,swift,uitableview,uigesturerecognizer
I am making navigation app on swift, and I have a half view - mapView, and a bottom half - tableView. I am looking for a way to hide tableView with down swipe(swiping top of tableView down, and it disappears. I found a way how to hide it with animation,...
ios,swift,uitableview
I have a custom class for a table cell that is connected to a switch within the table cell (with an action) and I want to be able to to communicate to the TableViewController that the action happened as well as the path of the cell. The way that initially...
ios,uitableview
I'm calling setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine on a UITableView instance. The separator line should cover completely the width of table but instead it starts with some inset from the left. How can I have the separator line span the entire width of the table?
ios,swift,uitableview,uitoolbar
I have a UITableView inside the ViewController, on top of it there is a UIToolbar. A button image is placed inside the Toolbar, as shown in the image. What is weird is that when I click that button nothing happens, it seems it's behind the TableView. I've tried sending back...
ios,swift,uitableview,uiscrollview
I am trying to create a UIScrollView which consist of 2 or more UITableViews and the user can swipe left to right to switch between UITableViews What i have done so far is putting 2 UITableViews in a UIScrollView like this: class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet var theScroll:...
ios,objective-c,uitableview,animation,uicollectionviewcell
I have a necessity in my app which requires the following animation in uitable cell. The animaton can be easily seen in the following link. UITableCell animation sample How to achieve this animation?...
ios,swift,uitableview,uisearchbar
I have seen similar questions asked here but none are very helpful to me specifically. I am implementing a search bar in my table view and it looks like all is well and there aren't any errors. I have looked through the code a few times and can't find any...
ios,swift,uitableview,ios8,uicollectionview
I'd like to place a button at the top of a UITableView or UICollectionView, but only shown when swiped up beyond the first row. Usually you see scroll to refresh or a search bar there, but I'd like to put a button there for another functionality. How can I do...
ios,uitableview,delegates,nsnotifications
I'm new iOS developer. I have 2 viewcontroller like 2 pictures below (I'll called its VC1 and VC2): VC1: And VC2 is a list of printers: Now I want every time I selected a cell in VC2 then press right bar button in top right the text label of cell...
ios,objective-c,uitableview,ios8,uiimageview
Right now I'm using LBBlurredImage to blur an image, but I want to change to iOS8's UIVisualEffectView to blur instead. I'm having a hard time implementing, any ideas? Implemented with LBBLurredImage: - (void)updateData { // Set up Screen self.screenHeight = [UIScreen mainScreen].bounds.size.height; //UIImage *background = [UIImage imageNamed:@"gray"]; UIImage *background =...
ios,objective-c,iphone,uitableview,uiscrollview
Im working on a project that has a detailed view of a company's information. On the lower half of the view I have some buttons that don't move, but above them I have more content, that I can not fit into the screen for a 4s. So I'm thinking I...
ios,iphone,uitableview,uipickerview
I have a view with my UIPicker that will push to my UITableViewController when my start button is pressed. I want to create a certain number of rows per section in my UITableViewController from my UIPicker. Here is the relevant code. I'm not getting errors. My UITableViewController just doesn't have...
ios,objective-c,uitableview
I have a custom table view cell in my table view controller. On my cell there is a label which i want to either show/hide based on the row information. I can easily show/hide the label based on the row information. But is it possible to expand or collapse the...
ios,uitableview
I have a UITableView showing photos and albums on the phone. When the app is started if there are no photos on the phone, I have zero sections. Then during runtime I take a photo with the app and in this moment I want to show the album. My numberOfSectionsInTableView:...
swift,uitableview,nsobject
hi i have blog application parser from json object its work well , i want add ''load more' for table view but I got this error in this line appDataArray.addObjectsFromArray(allObjectArray.subarrayWithRange(NSMakeRange(currentPage, 20))) the error http://i.imgur.com/BLGXysR.png this object code var title: String var image: String var web: String var catname: String var...
ios,swift,uitableview
I have a UITableView setup with a custom UITableViewCell which has a label as well as a text field. Whenever now I change the text of the text field, the text in the text field of a random other cell changes as well. public class ChangePriceTableViewCell: UITableViewCell { @IBOutlet weak...
ios,objective-c,uitableview,uitextfield
I have UITableViewCell and inside that I have UITextfield, I made 7 sections (dynamic) and each section have one cell (one row) which includes UITextField . Now I have one button on right top corner of UINavigationBar (EDIT button). I need to enable user interaction enable for all section textfields...
ios,swift,uitableview,uibutton,segue
I am trying to call a prepareForSegue function out of TableViewController from a button in an UITableViewCell. Can I just call it from the button? Something like: TableViewcontroller: func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) { if (segue.identifier == "segueExercise") { print(segue.identifier) let vc = segue.destinationViewController as! DetailViewController TableViewCell: @IBAction func exerciseAction(sender:...
ios,image,uitableview,asynchronous,sdwebimage
I'm using SDWebImage to download and cache images in an UITableView asynchronously but I'm having some problems. The scenario is the following: When the cell is created I want to load a low quality blurred image (1-2kb) from an URL, before the real image comes in. After the higher quality...
ios,objective-c,iphone,uitableview,uiview
I have a UIViewController with a UITableView and UIView (see blow). When I call hiddenLoadingView at somewhere, the UIView is still showing, then dismiss after 10-20 seconds, why? - (void)viewDidLoad { .... self.tableView = [[[UITableView alloc] init] autorelease]; [self.view addSubview:self.tableView]; self.loadingView = [[[UIView alloc] init] autorelease]; [self.view addSubview:self.loadingView]; } -...
ios,uitableview
Scenario: Embedded UITableView in a standard UIViewController's view. Three (3) 80-pt rows fill the UITableView. Problem: UITableView doesn't scroll until the number of rows > 5. I've tested this by varying the number of displayed rows and attempted to scroll. Three (3) rows fills the UITableView. Four (4) fills but...
ios,objective-c,uitableview
I'm using two different kinds of UITableViewCells in my app. Ideally, I'd like to use them like this: if (self.data.count > 0) { static NSString * reuseIdentifier = @"programmaticCell"; articleCell * cell = [self.tableView dequeueReusableCellWithIdentifier:reuseIdentifier]; if (!cell) { cell = [[articleCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:reuseIdentifier]; } return cell; } else {...
swift,uitableview,resize,frame
I have a Tableview with above it a Segmented Controller. Based on a previous user action, this segmented controller is either hidden or shown. If it's hidden, I'd like to resize my tableview, so that it looks nice (else I have an empty gap on the screen). I tried the...
swift,uitableview
I am trying to to build a selection interface with a UITableViewController similar to the one in Settings -> General -> Auto Lock, and have been able to get the checkmarks working, but I cannot seem to figure out how to have the checkmark appear on the previously selected cell...
ios,objective-c,uitableview,core-data
I originally had my app setup to store one line items in a single entity within my core data model. I have since decided to change this to allow the main uitableview to simply list the name of each item and then when you tap on an item you can...
ios,uitableview
I want to have a table with custom UITableViewCell class as rows. Within each row (custom UITableViewCell), I have a control which the user can use to change the state of something in that row. Let's say for sake of an example that each table row (custom UITableViewCell) contains a...
ios,swift,uitableview,uiviewcontroller
In order to customize a table view and add some additional controls to it, I've embedded a UTTableViewController into a Container View and placed that container View into a UIViewController. I've followed the instructions I found here: Embedding TableView in TableViewController into another view TableView is configured with four static...
ios,objective-c,uitableview
I'm currently using the JTCalendar calendar control to show a calendar grid on the top half of my view controller. Before I attempt to add a table, the calendar view takes up the top half, and the bottom half is empty. After I add the code for the UITableView, which...
ios,iphone,swift,uitableview,uiimageview
Okay, so I am only able to scroll outside the borders of the UIImageViews, but I need to be able to scroll on top of those views. The UIImageView contains Pan Gestures, Pinch Gestures, and I am unsure if that is causing the error. I will paste my cell code...
ios,swift,uitableview,programmatically-created
I've just joined StackOverflow and i'm struggling with a programming requirement with a iPhone app I'm developing in swift. I have a tableview list of different calculators and i would like to segue to another UITableView when a item is clicked to then do the detailed calculations for that tool....
ios,json,swift,uitableview,swifty-json
Ok i have a bundled .json file that I am looking to parse with swifty json. The model I am using in swifty json is a top level object that has an array of objects that each contain values of either strings or ints. I was wondering what code I...
objective-c,uitableview,google-maps,ios8,core-location
I have a view controller that contains two views: a map view using the Google Maps API and a UITableView. The view controller fetches a list of location objects from Google Maps within a certain radius of a particular location and plots them on the map view as markers and...
ios,objective-c,uitableview,tableview
Imagine I have 200 rows in a tableView, what will happen if I call reload twice - meaning I have called reload on my tableview, while reloading the 100th row, I again call a reload, what happens now?
ios,swift,uitableview,uiimage
I'm querying images from my Parse backend, and displaying them in order in a UITableView. Although I'm downloading and displaying them one at a time, they're appearing totally out of order in my table view. Each image (album cover) corresponds to a song, so I'm getting incorrect album covers for...
ios,swift,uitableview,watchkit,ibaction
I currently have a table with some dynamic rows. When I run the probject the rows display on the screen and even have a press animation but xcode won't let me wire up the table row as an IBAction to its controller. I can't use a segue in this instance,...
ios,xcode,swift,uitableview,overlap
I'm having a problem with my TableViewCell I have two type of cell in my storyboard. when i scroll, the text overlaps in some cells. I Try everything but I do not know how else to do. thank you very much for the help public func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath:...
ios,uitableview,autolayout
im trying to build apps that have tableview cell similiar with twitter, there are text and images. My problem is i want to insert the image above the text. While it can be text only. So if there are no image, the text will be in position (0,0). And if...
ios,swift,uitableview,custom-cell
I created a tableview with a custom cell showing data. The display works fine. But the cells are repeating so there are more cells being displayed then items in the array. override func numberOfSectionsInTableView(tableView: UITableView) -> Int { // when searchcontroller is active, return the number of search results. If...
ios,objective-c,uitableview
I have a custom UITableViewCell with a couple of UIButton's on it. I have both IBOutlet's and IBAction's set up from the buttons to my custom TableViewCell. Now, when I go to use this custom cell on a TableViewController, how can I know in my controller which cell's X button...
ios,swift,uitableview
I'm trying to load values from two Arrays into my UITableView which is causing Array index out of range Error. 1.categories array contains 60 elements, I'm using this array to set cell.textLabel.text 2.colorsArray array contains 5 UIColor elements, I'm using this to set cell.backgroundColor I'm trying to cycle through these...
iphone,uitableview,uiview,titlebar,nsrangeexception
I have a UITableView that pushes to a UIView when the user taps the UITableViewCell. I want to make the title of the push view the text from the cell that the push view is coming from. I am trying to declare an NSUInteger when the row is selected to...
uitableview,ios8,nslayoutconstraint
I have a Master-Detail application that uses CoreData. Everything is hooked up fine and works as expected. There is just one problem with the display when adding a new entry. On the left is the Master's TableView with the entries and on the right is the Detail's View, where the...
ios,objective-c,iphone,swift,uitableview
I have a button on custom tableviewcell. I've been able add action to this button by add target like below code: var playButton = cell.contentView.viewWithTag(5) as? UIButton var sender : UIButton = UIButton() playButton?.addTarget(self, action: "playPost:", forControlEvents: UIControlEvents.TouchUpInside) playButton?.layer.setValue(object["previewUrl"] as? String, forKey: "songUrl") playButton?.layer.setValue(indexPath.row, forKey: "index") But, how can I...
ios,objective-c,uitableview
I'm a bit newbie to objective C and iOS, so my question can be stupid:) I've checked self.tableData in debug mode, there's no empty items there, and numberOfSectionsInTableView returns correct value. Here's UITableView data source methods: - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { NSArray *arr = self.tableData[section]; return arr.count; } - (NSInteger)numberOfSectionsInTableView:(UITableView...
swift,uitableview,code-reuse,iboutlet,tableviewcell
I'm creating a coffee timer as a learning exercise and I want to have a different menu based on the brewing method selected. I'm storing my settings in NSUserDefaults and populating my tables with two separate arrays that look like this: var aero = ([ "Cool Down Time Enabled" :...
uitableview,uiscrollview,storyboard
In my Storboard, I have a UIViewController (ParentClass) -> UIScrollView (linked to Parent) -> UITableView (linked to Parent) -> UITableViewCell (2 cells, each with their own Class). What I'm trying to do is add several instances of the UITableView (with the custom cells) into the UIScrollView. I am close with...
ios,swift,uitableview,childviewcontroller
How can I add a view of a child view controller to a custom UITableViewCell? I can add the view like this inside cellForRowAtIndexPath: self.addChildViewController(controlsViewController) cell!.cellView.addSubview(controlsViewController.view) controlsViewController.didMoveToParentViewController(self) But when the cell disappears, I need to remove this child view controller. I'm not really sure how to do that. Is there...
ios,objective-c,uitableview,uilabel
This is really frustrating me. I notice there are a lot of questions regarding this but I can't seem to get any of it to work. I have tried UILabel. I have tried UITextField (which works to a certain extent but some of the text doesn't get resized all the...
ios,objective-c,uitableview,nsurlsession
I'm running into a bit of a strange problem here. One of my NSURLSessions is in charge of getting information for restaurant information that I have stored (restaurant name, restaurant's logo URL, etc), and then the second NSURLSession is in charge of using the restaurant's logo URL to retrieve the...
ios,uitableview
I have a UITableView where I move a row from outside the visible scroll area to the top of the UITableView. The animation works as intended but it ends up showing a duplicate cell of what was previously at index 0. Code looks something like this except for the hardcoded...
ios,xcode,swift,uitableview,tableviewcell
I have a table view like this: when the user tap one row, I want uncheck the last row and check the selected row. So I wrote my code like this: (for example my lastselected = 0) func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { var lastIndexPath:NSIndexPath = NSIndexPath(forRow: lastSelected, inSection:...
ios,arrays,swift,uitableview,core-data
I am trying to get the moveRowAtIndexPath method to work using Core Data. My program is user-driven meaning that the user updates the data repeatedly and is basically a table view that displays the name of an Entity. Each Entity has two attributes: a name and an integer that represents...
ios,xcode,swift,uitableview,search
Right now I have a picker view that shows up when you press a label, and after you have selected anything from the picker view and hit done it will hide and the label will change to the value you selected. But I want to implement another picker view, and...
ios,iphone,uitableview
I am creating a UITableTableViewCell from a nib file. I am using width of 320 for the the cell width. I found when I run the app in iphone 6 simulator, the cell cannot occupy the whole width of the table view. If I use iphone 5s, the width is...
ios,objective-c,uitableview
In the UITableView delegate method cellForRowAtIndexPath:(NSIndexPath *)indexPath, I want to set the image for a cell imageView. If the image is not available, i would like to download it and then set it asynchronously in the complete block. The problem is that because the cells are reusable, maybe when the...
ios,swift,uitableview
I'm working on my first Swift app, and stuck on a bug forever. When adding a new entry to the coredata, everything goes fine the first time. However, with additional items, the previously added item is duplicated in the table. The data is not duplicated, only the cell. When the...
ios,swift,uitableview
I want to have some of my cells not respond to user interaction and am trying to set via: func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { .... if let header = tmpTableItem as? EKHeader { tableViewCell.textLabel!.text = menuHeader.name tableViewCell.selectionStyle = UITableViewCellSelectionStyleNone } .... but am getting the error:...
ios,objective-c,uitableview
How can I increase the height of a UITableView section. The code I am using right now is - I tried to increase the height of the view that I am returning , but it does nothing . Can anyone help me? -(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { UIView *view =...
ios,uitableview,uiswitch
I added a UISwitch as a subview to the contentView of a UITableViewCell and set isOn to be true. After toggling it, it becomes the following and looks weird. Does anyone know why this might happen and how to solve this problem? Weird UISwitch: https://dl.dropboxusercontent.com/u/43497092/stackOverflow/Screen%20Shot%202015-06-12%20at%209.28.43%20AM.png For comparison, a normal looking...
ios,uitableview
I return canEditRowAtIndexPath is YES. If I swipe left, I can see the delete button and implement my delete action. How can I do if I swipe left, both insert button and delete button appear together? I know there is a way, I should have a custom cell with two...
ios,uitableview,segue,viewcontroller
When I click a table cell in my application it opens two view controllers. Which it seems to assume that I have clicked two cells, since it opens the cell before and the one I have clicked. The first 3 cells are pretty much static, every other cell underneath the...
ios,arrays,swift,uitableview
i created two arrays for a UITableView. How do i return 2 values? Im getting this error saying that "(Int/Int) is not convertible to 'Int'". So as you can see i return 2 arrays which are strings. The app is basically, a uiTableView that displays the arrays. I began with...
ios,swift,uitableview,statusbar
I have a UITableViewController inside a navigation controller, with a search bar. This is how I add the search bar in viewDidLoad: let resultsController = SearchTableViewController() resultsController.people = people searchController = UISearchController(searchResultsController: resultsController) let searchBar = searchController.searchBar searchBar.placeholder = "Search a person" searchBar.sizeToFit() tableView.tableHeaderView = searchBar searchController.searchResultsUpdater = resultsController This...
ios,objective-c,uitableview,model-view-controller,uibutton
There is a UITableViewCell subclass with a UIButton inside. A web call should be made when the button is pressed. The question is whether I should set the action in the controller, or can the action be set within the UITableViewCell subclass? Will the second option violate MVC pattern?...
ios,uitableview,colors,cell,changes
when I compile my code, i have no error and the result is good but when i scroll in my tableview some cells become in red color. the purpose is to display in red color all the taks which had passed the due date I think the problem is here...
ios,swift,uitableview,search
So I was following this link for implementing a Search Bar in my Table View. I had to make a few changes because my cells contained Objects with different values and data types and so I had to adapt the Search function accordingly. I'm pretty sure I have most of...
ios,uitableview,uinavigationbar,uisearchcontroller
In a current app I'm creating I want to know if there is a way to prevent the UISearchController searchbar moving into the UInavigationbar when its active. I've added it to the tableview tableHeadeView but I want to keep it there instead of it becoming the UInvagiationbar when active. Basically...
ios,swift,uitableview
While working on my first iPhone app, I ran into a problem while attempting to use ‘automatic’ table cell resizing. When I load the app, the first few cells will always be huge, about 6 times the size it should be. Then, when I scroll down and back up, they’ll...
ios,objective-c,uitableview,uiscrollview
Actually i have got a table view with options, but alongside i have got a complicated scroll design. How to achieve this custom scroll?? ...
ios,swift,uitableview,parse.com,pfquery
I have a Posts class that I am querying in a UITableViewController using Parse as my backend. In my viewDidAppear I call my loadData() function. And then I have a var refresher = UIRefreshControl() that is responsible for my refresh() function. After a few time reloading the data I get...
ios,swift,uitableview
I am trying to add an image to a tableview cell but not having much luck getting it to display. The image is being loaded from the file system (I println() the result) as a UIImage but I cannot seem to get it into the cell. Placing a println() after...
ios,swift,uitableview,swifty-json
I'm attempting to use the result of one Rest call as an input for my TableView. I've got an array named GamesList[String] that is synthesized in the viewDidLoad() function. This is the viewDidLoad() fuction: override func viewDidLoad() { super.viewDidLoad() getState() { (json, error) -> Void in if let er =...
ios,swift,uitableview
Could anyone tell me how to access the UITableViewCell above (or below) a specific cell? I have access to the cell the user is selecting using didSelectRowAtIndexPath: func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { var currentCell = tableView.cellForRowAtIndexPath(indexPath) as UITableViewCell? } And I know how to access the cell's row...
ios,swift,uitableview
I have two tables in two different view controllers. At some point both the tables might have same type of cells. As both these tables are in different view controllers I will have to have two different cells in both the tables yet containing the same type of data if...
ios,swift,uitableview,parsing,tableview
I've spent about 13hrs/day for the past week but I can't seem to figure it out. I've scrolled to the ends of the web but I can't seem to implement 'query.skip' and 'query.limit' to my table correctly. The 'user' is following people and each person has a lot of posts....
swift,uitableview,ios8,xcode6
As absolute beginner I have to ask those questions: I want to use a UItableview with different custom TableviewCells. One Cell should have an image and a label. Another cell should have two label. A third cell should have a dayPicker. I don't have to create Tage cell in the...
ios,swift,uitableview
I have a table view with dynamic prototypes that is currently displaying 4 elements programmatically. I assign the cell names through an array (see code below), but I also want to add a small view to the right half of each cell in order to show a small graph next...
ios,uitableview,cocoa-touch,autolayout,orientation-changes
I am trying to use AutoLayout inside a UITableViewCell with Objective-C. I am not using a nib/xib/storyboard. I create my views in code. Here's my UITableViewCell: @implementation SettlementTableViewCell - (instancetype) initWithReuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier]; if (!self) return nil; [self setSelectionStyle:UITableViewCellSelectionStyleNone]; _order = [[UILabel alloc] init]; [_order...
uitableview,core-data,nsfetchedresultscontrolle,nsmanagedobject
So I have two entities in CoreData (A and B). A has many Bs and B can only belong to one A. I have managed to display A on a tableview and when I tap a cell, it should segue to another tableview controller that displays the list of Bs....
ios,uitableview,core-data,nspredicate
I have a CoreData Entity with multiple performance records in races of differing length. I want to pull the best performance for each athlete in each race and then put the results in an CoreData Table View. Here is the hack that I have come up with to accomplish this....
ios,objective-c,uitableview,uiswipegesturerecognizer
I am trying to add a left and right swipe gesture to every cell in my UITableView. However, no one has seemed to answer this question no matter where I look. Using this current solution, which is what is recommended, I do not enter the right gesture handler. UISwipeGestureRecognizer* right...
objective-c,uitableview
Very occasionally (once a week'ish) Crashlytics is reporting crashes such as Fatal Exception: NSRangeException -[__NSArrayM objectAtIndex:]: index 7 beyond bounds [0 .. 1] [MusicList tableView:heightForRowAtIndexPath:] I'm wondering if these are occurring due to the data being reloaded before the table finishes rendering, so when it requests a piece of data...
ios,swift,uitableview,autolayout
I have a custom tableview cell where I'm letting auto layout manage the height for it. tableView.estimatedRowHeight = 44 tableView.rowHeight = UITableViewAutomaticDimension Inside the tableview cell I have a container subview: contentView.addSubview(calendarEventContainerView) All the content I'm adding goes in the calendarEventContainerView and I would like the subview to be a...
ios,objective-c,iphone,uitableview
I would like to ask on how to hide the image in accordion using UITableView? First I create tableview and delegate it. here is the code of my viewcontroller #import "ViewController.h" #import "ListViewCell.h" @interface ViewController (){ NSArray * tableData; NSInteger currentSelection; int one; } @end @implementation ViewController - (void)viewDidLoad {...
ios,uitableview
Please tell me how I can be derived for each cell section? Currently displays 4 sections, but only the first cell (identical). Here's the code: @implementation ViewController{ NSArray *tableCellTitle; NSArray *sectionsTitle; } - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib....
ios,objective-c,uitableview
I have implement a side out menu for my currently developing ios application.There I used a UITableViewController as my menu and I want to highlight the menu item selected. I have done the highlighting thing and the problem is when I select one of those menu items, up and down...
ios,objective-c,uitableview,unrecognized-selector
I am not able to locate the two images and the text box that I placed in my custom cell "GameTableCell.H"... not sure what I'm doing wrong here. GameTableCell.H: // #import <UIKit/UIKit.h> @interface GameTableCell : UITableViewCell @property (strong, nonatomic) IBOutlet UILabel *GameTime; @property (strong, nonatomic) IBOutlet UIImageView* AwayImage; @property (strong,...
ios,swift,uitableview,uilabel
I just wonder why a UILabel in UICell gets truncated despite the fact that it would actually fit there. I know that accessory indicator takes some space but this is not the point, from what I can see in my storyboard the uilabel would fit there easily. My constraints aren't...
ios,objective-c,uitableview
I just made the small game on Xcode, this is the leaderboard of the game. I used core data to save the score and show on the leaderboard. My question is how to sort the number for tableview, for example the serial number show as "14 7 9 7 9"...
ios,uitableview
I made a custom cell from my storyboard, with an UIImageView and a UILabel. Each of them have a tag 100 for the imageView and 102 for UILabel. I try to get them in my datasource method but as below, they are still nil and I don't know why. ...
ios,objective-c,uitableview,ipad
So, this is going to be a very strange problem to address. I will try to be as specific as possible. Here is a snippet from my UITableViewController: - (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellIdentifier = @"miscCell"; JASMiscConfigurationTableViewCell *cell = ((JASMiscConfigurationTableViewCell *)[tableView dequeueReusableCellWithIdentifier:cellIdentifier]); if (cell ==...
ios,swift,uitableview
When I expand a UITableViewCell on touch, I know I have to update the UITableView. Right now I'm doing: tableView.beginUpdates() tableView.reloadRowsAtIndexPaths(indexPaths, withRowAnimation: UITableViewRowAnimation.Automatic) tableView.endUpdates() Do I need to use both updates methods as well as the reload method? Or is it just one or the other? I'm not completely understanding,...
ios,swift,uitableview,autolayout,interface-builder
I have subclassed UITableViewCell (with a xib), and I have noticed that when I use autolayout/constraints, the labels that I place in Interface Builder do not show correctly at runtime. First, I put three labels aligned left, center, and right with respect to the cell's content view. When I run...
ios,objective-c,uitableview
I want self.agendaTable to run reloadData when the calendarDidDateSelected runs, but that doesn't seem to happen. As far as I can tell, the table is setup properly, and I have it set to update the contents of self.agendaTableArray in cellForRowAtIndexPath when it reloads. What am I doing wrong? I'm setting...
ios,json,swift,uitableview
Good morning everyone, Here's my issue, I'd like to create a UITableView with JSON I get from my website API. The problem is that he executes the override functions first of tableview and my JSON data is not downloaded yet, I've tested and it's downloaded when all the cells are...
ios,swift,uitableview,alignment
I am trying to make a row's contents (in a UITableView) have multiple alignments: left, center and right. I searched Stackoverflow for a solution and found this: Different text alignment to a row in table view. The only problem is that the solution is ObjectiveC-based, which I am having trouble...
ios,swift,uitableview,cocoa-touch,ios-charts
I am working on a project where I have a table view which contains a number of cells with pretty complex content. It will be between usually not more than two, but in exceptions up to - lets say - 30 of them. Each of these complex cells contain a...