Tag: uitableview

UITableView: load all cells

Is it possible to load all cells of an UITableView when the view is loaded so that they are not loaded when I’m scrolling? (I would show a loading screen while doing this) Please, it’s the only way at my project (sorry too complicate to explain why ^^) EDIT: Okay let me explain you, what […]

resignFirstResponder to UITextViews on UITableViewCells that are no longer on screen

I have a UITableView with a whole bunch of custom UITableViewCells in it. Each of these UITableViewCells has a UITextView in them. The problem I’m having, is that if the user touches a UITextView, that becomes the firstResponder and the keyboard pops up. If the user then scrolls down to a point where the UITableViewCell […]

How to make Images in UITableViewCell scroll smoothly?

I’m loading images into my UITableViewCell and it is becoming choppy. I only have around 5-10 cells max. Are there any easy ways to fix this? – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @”appointmentCell”; AppointmentTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; NSDictionary *appointmentDictionaryTemp = [self.appointmentArray objectAtIndex:indexPath.row]; cell.patientNameLabel.text = [appointmentDictionaryTemp objectForKey:@”patient”]; cell.appointmentTimeLabel.text = [appointmentDictionaryTemp […]

Count value is changed when tableview is scrolling

This question already has an answer here: Scrolling the tableview count label value is changed? 7 answers

Removing the bar in standard UITableView programmatically

Does anyone know if it’s possible to remove the topbar from a UITableView in code? So in this case, remove the “Books” bar?

Detect iPhone orientation before loading tableview

So, I’m in a bit of a bind… According to this post, the orientation of the iPhone/iPad is portrait up to a point after which the “auto-rotate” function inside the controller tells iOS that the orientation has changed. My problem is that it appears as though the tableview cells are loading before I have a […]

UITableView In Edit Mode – Pressing Delete Makes My App Crash

My UITableView has an Edit button which adds an “insert row” (with a green plus). If I try to delete a row while in Edit mode, my app crashes with “NSRangeException”. Deleting a row while NOT in edit mode (using swipe-to-delete) is fine. I know this is to do with how many rows the table […]

Reload UITableView from another tab

I am having trouble trying to reload UITableView cell data which are being loaded from an XML source. Here is the scenario. App contains tabs, in one of them there is a tableview which gets it’s data from an XML file and works just ok, but the thing is when I want to change the […]

Typing in UISearchBar crashes my app

UPDATE 2 My app is crashing when presenting it modally after a user taps a button in ViewController1. In my storyboard, I have a standard present modally segue set to pop up the UINavController/UITableViewController containing the UISearchBar. That’s failing every time. However, in my AppDelegate, if I set the window’s rootViewController to the same UINavController/UITableViewController, […]

How to create a UITableView with editable components?

I was wondering how to create a UITableView with editable components. If you look at the network settings in the iphone, where you can enter the static ip address, etc. How to do this ? Thanks