uitableview

How do you animate the resizing of a tableView without its rows/subviews getting clipped?

EDIT: I originally asked this question in regards to general view resizing, but I realize now that it's something much more specific to tableViews. Say that a tableView originally has a frame of (0 0, 320 460), i.e., it fills an entire iPhone screen. In order to resize the tableView's height and animate the resize, I map the following ...

iphone SDK: too many calls to tableView titleForFooterInSection

Hi, I have a table and I am noticing that for every new row which shows up during scrolling operation basically one call to tableView cellForRowAtIndexPath there are 27 (!!!) calls to tableView titleForFooterInSection Why so many? While application seems to work fine, I am concern about performance. table has only one section than...

Can a UITableView (not UITableViewCell) have variable size?

Hello everyone I have a UIView (created in IB) with a grouped UITableView as a subview. Below this table view is a UIButton. The XIB containing the view will be loaded by a few different viewcontrollers, and so the contents of the table view can vary between one and four cells. Here's what I want to achieve: when the view loads, the he...

CoreDataBooks Add new cell to tableview

Hi, I recently downloaded Apple's sample app CoreDataBooks and for the sake of learning decided to add a cell to the last record in the RootViewController.m table view, which would display the number of records that were fetched. The code I added is shown below. I didn't get to the point of adding the fetch count because I am getting b...

A large UITableView with objects underneath

Hi All, I am trying to create a view that contains a UITableView which is larger than the view itself and once you finish scrolling that table view you will see a button underneath. I was trying to add a UIScrollView and another background view behind that UITableView so I can simply create a hugh view with a table view and button as it...

Checkbox cell in a table view: User can't check it

I need help in using checkbox cell. I currently added the object to tableview. It looks ok until i tried building and running the program where I cannot check the checkbox. I am currently using a tableview which displays items runtime with a checkbox for each item so i can have multiple selections. I am new to xcode and I have been stuc...

How to adding custom views around a UITableView?

Is there a way to add custom views above and below a UITableView? I'd like to have a custom header and a custom back button in the footer. What would be the best to do this? I've started by subclassing UITableViewController and tried resizing the UITableView. In vain. Tried adding a new main view to UITableViewController and adding t...

Placing UITextView inside a UITableView footer

Hello everyone I have a UITableView with footer view. This footer view contains a UITextView as a subview. Both the table view and footer view are created programmatically. The text view appears on screen correctly, but it doesn't display any text, nor does it respond to touch events. Could the problem be related to the fact that UITex...

Resizing image view in table cell iphone

Hi, I am developing an iPhone app where downloading a high quality image from my app server. I am required to resize it to half its size and display it in the table cell. Could anyone help me to find which functions I could use? Appreciate your suggestions! ...

Getting started in Core Data for iPhone?

I want to implement Core Data into my iPhone app. So what is the best way to learn Core Data specifically for the iPhone? I have 4ish hours that i can devote to this today, so ideally I would be competent enough to add this (however slightly) into my app. The only way i retain data now is through NSUserDefaults, just so that when the ap...

How to reliably subclass UITableViewCell for grouped UITableView?

When writing a customized subclass of UITableViewCell, I find that the results work well for the rectangular cells of a plain-styled UITableView, but do not work at all for the rounded cells in a grouped-styled table. Is there a way to reliably subclass UITableViewCell to draw cells which work for grouped-style tables? (Without using In...

Best layout for detail views with heterogeneous rows

I've never seen a perfect layout strategy for detail views containing several heterogeneous rows, e.g., one row for name, one for address, one for email, one for age ..., just like the name editing view of Contacts, but more complex. Obviously, it is a perfect "table" thing, and UITableView's group style is preferable to plain listing o...

Help with Adding AdMob ads to a UITableView (iPhone)

Hi guys, I am trying to add an AdMob ad to a table view. I would like it to show up in every 10th cell. (Eg. like how it is in the Free version of the Reddit App if you have it). I tried to follow the AdMob documentation but I didn't have any luck and I'm sure there is something I am missing. Could anyone shine some light on a simple ...

I dont get my tableView to navigate even though i feel the code is right

My table view cells have the ContentView as the Labels. When i click on them to navigate to another view whose viewController is as shown does not navigate. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { DetailedWebViewController *detailedWebViewTab1=[[DetailedWebViewController alloc] ...

Problem in Reloading UITableview..!

hi, i am parsing two xml files with one xml parser class , i have a table view where the data is displaying after parsing .. here is a imageview and label , when i parse the first xml like if i parse myxml_1.xml and then display data in a table view its fine . but when i parse again the xml named myxml_2.xml and display the data in that...

Changing UITableView section header without tableView:titleForHeaderInSection

I'm trying to change the header title for a section in a UITableView when a cell from that section is selected. tableView:titleForHeaderInSection is triggered by the application, so that doesn't help. I can call reloadData, but the performance suffers because the app has to reload all the visible cells. I also tried to use a custom heade...

My table view does not navigate to another uiview page. Could any one tell me what might be wrong?

My table view cells have the ContentView as the Labels. When i click on them to navigate to another view whose viewController is as shown does not navigate. (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { DetailedWebViewController *detailedWebViewTab1=[[DetailedWebViewController alloc] initW...

Detecting UITableView scrolling

Hi I've subclassed UITableView (as KRTableView) and implemented the four touch-based methods (touchesBegan, touchesEnded, touchesMoved, and touchesCancelled) so that I can detect when a touch-based event is being handled on a UITableView. Essentially what I need to detect is when the UITableView is scrolling up or down. However, subcl...

UITableViewController problems

I have a nib that contains two TableViews. The table views are of the same class that I have created that is a subclass of a UITableViewController. I believe that everything is hooked up correctly. However, when I set the UITableView to the UITableViewController then run [uitableviewcontrollervariablename reloadData]; I first get a w...

resignFirstResponder when tapping UITableView?

I have a UITableView with two custom cells and each of them has a subview with a UITextField inside it. I have tried adding a UIButton on top of the UITableView and have it resignFirstResponder but that just means you won't be able to tap anywhere else - not even on the UITextFields to enter text. How do I make it so if I tap outside th...