uitableview

iPhone: Add background button to view when UITableView has no cells

I have a UITableViewController, when there is no data to populate the UITableView, I want to add a button, which uses an image. So, rather than the user seeing a tableview with no records, they will see an image that says, "No records have been added, Tap to add one", then they click and we create a new one. I assumed I would just hide ...

iPhone: Fetched Results Controller, don't use sections in UITableView

I am using a fetched results controller, which, it seems wants to set up using sections in my UITableView. Well, in this case, I don't want to use sections. Which, is easy enough to set the value for numberOfSectionsInTableView: to 1. But, now I am not sure how to get the numberOfRowsInSection: to return all of the cells into one sect...

Scroll the entire page with with UITableView that doesn't take up the entire screen

The only UITableViews I have worked with thus far are sized to fill the entire page. I'm trying to create a page in my app where I will have an image and a label on the top of the page followed by a UITableView to hold comments below it. Something like this springs to mind: http://www.inquisitr.com/wp-content/fbb.jpg My problem is if ...

Set tag and hidden for objects on custom UITableViewCell

I am re-using Apple's AdvancedTableViewCells example to create a custom, fast-scrolling tableview. Specifically, I am using their CompositeSubviewBasedApplicationCell method which draws the content on the tableviewcell with drawRect Everything works, but how do you hide a label or set the tag for a label or image using their method? D...

iPhone UI: No edit button for UITableView, bad idea?

I have a UITableViewController which lets the user drill down into different records. On the second level/view, the user can add and edit new records. But, I am not sure what to do, since the back button is on the top left, and I need to put the "Add" button on the top right, so there is no room (keeping to HIG) for the edit button, wh...

Plist data OK in iPhone simulator but disappears after installation onto device

I am testing an application on a first-generation iPod running OS 3.1.3 with a tableview populated from a plist. The application works well on the simulator. Initially after installation onto the iPod for testing, the tableview was blank (scrollable lines present, but empty rows). After searching this site, I found one issue to be a case...

How to disable the delete button for the particular row when we are using the table view delegate method commitEditingStyle in Iphone sdk?

Hi guys, Here I need a help from ur side that Im using the tableview delegate method commitEditing sytle to get the delete button for every cell when we swipe.But my problem here is I dont want the delete button for the first row in the tableview and swipe should not work and I dnt have any idea how to implemet this. Anyone's help will...

Get CoreLocation Update before TableView population?

hi, i have the corelocation stuff in an uitableview controller. i actually want to get a distance from two locations and print that distance in a tableview cell. the problem is, that the tableview is filled before all the corelocation stuff happens. how can i make corelocation makes all updates before the table is filled? heres my cla...

Using three20 to display a table view with styled text

I'm trying to get my head around three20. It's a big beast, but I want it to do just a small thing - display a table view with styled text within the cells. How would I create and show such a table? ...

UITableView Header View Scrolls

I am using a header view, not section header, with my UITableView. The documentation says that the header view sits on top of the table, but my header view scrolls just like a normal row. Is there a way to make the header view always visible at the top of the table? ...

Custom UITableViewCell Best Practice?

I am always subclassing UITableViewCell's and drawing them in code. Is there a good tool to visually get rect sizes so I don't have to guess and check all the time? ...

Custom UITableViewCell not appearing when row height is set

I have a custom UITableViewCell which I have created in IB. My labels display when I don't over-ride: - (CGFloat)tableView:(UITableView *)tblView heightForRowAtIndexPath:(NSIndexPath *)indexPath however my content is squished. I want the height to be 120px so I have the following: - (CGFloat)tableView:(UITableView *)tblView heightFor...

Set a grouped UITableView to start at a given section?

I have a grouped UITableView that has basic data inside it, but I would like to start the UITableView at a certain section when the app loads, can this be achieved? Thanks Mark ...

My UITableView has duplicated rows

Im not sure why, but my UITableView, which isnt anything fancy, is showing repeating rows when it shouldnt be. It seems that the rows that get added when the user scrolls (i.e. the rows that are off the screen to start with) are getting the data for the wrong row index. Its almost like when a new cell is de-queued, it's using a cell th...

iPhone: UITableView number emails style used in Mail app

I am looking for how to style a label in a UITableView cell, so that it shows how many children/messages are in the next view controller. This is used in Apple's Mail app, to show how many messages are in the inbox or account. I am sure that this is a UILabel, but what font, color and how to make the oval around it? ...

How can I get a custom UITableView to automatically scroll to a selected text field?

I have a UITableView, which I am controlling from a custom UIViewController. When the user clicks the 'add' button, I add a row to the UITableView with a text field in it, and make it the first responder. The problem is, when the bottom of the table is out of view (or hidden by the keyboard), the UITableView doesn't scroll to bring the t...

iPhone UITableViewCell with UIWebView inside: selection problem

Hello, I have an UITableView and in every cell I add 3 custom subviews: label, webview and another label. The problem I am having is that when I tap a cell, instead of all the cell's background changing to blue, it only changes around the webview, but the webview still has a white background. it's very ugly. Is the any way of fixing thi...

UITableViewCell not appearing/reusing correctly from NIB

I have created a custom UITableViewCell from a NIB. Everything appears when the rowHeight is not set (albeit, everything is squished). I am not sure if I am reusing and creating the cells properly: // Customize the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath ...

Do I need to set heightForRowAtIndexPath if I am using a custom UITableViewCell?

Do I need to set heightForRowAtIndexPath if I am using a custom UITableViewCell? In my NIB I have already set the cell height. When I over-ride heightForRowAtIndexPath the contents of my cell don't appear, even though it is set to the height defined in the NIB. If I don't over-ride heightForRowAtIndexPath the contents of the cell appea...

Grouped table view empty section

Hi, I've read every answer available for this question that I could find, including this answer here on SO: link text The best known example of what I am trying to accomplish would probably look like the detail screen of the Contacts app. Some contacts have a phone number and email, others have multiple phone numbers but no email etc. ...