uitableview

Data not loading in Detail View

Im trying to get my data to load in my detail view. Can any one take a look and see why it isnt showing? It loads fine in my rootviewcontroller, just not the detail view. DetailViewController.m #import "DetailViewController.h" @implementation DetailViewController - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarni...

The app crashes when it hits this line... any ideas?

I am trying to build a UITableView which just goes really weird? Here is the line it crashes at: bookmarksList = [[NSArray alloc] initWithContentsOfFile:[self saveFilePath]]; I have the bookmarksList declaired as an NSArray in the header file, so thats all good. The method saveFilePath is as follows and works for actually saving a fil...

UITableView with multiple viewcontollers

Hi, Noob at the most. I just filled my UITableView with Planets. I would like each cell clicked to open into a new Xib (if this sounds like the wrong approach please direct). I can get a secondviewcontroller working, its getting the thirdviewcontroller and fourthviewcontroller working? Thanks. ...

cell.detailTextLabel.text not working... why

Using the following code I am getting the text.label but not the detailTextLabel.text. The NSLog is displaying correctly. cell.textLabel.text = [eventLabels objectAtIndex:indexPath.row]; cell.detailTextLabel.text = [eventFields objectAtIndex:indexPath.row]]; NSLog(@"%@", [eventFields objectAtIndex:indexPath.row]); I also tried....

UITableView Custom Section Header, duplicate issue

I am having trouble animating a custom UITableView section header. The goal was to create collapsable sections. When I tap on the custom header the first time it animates as expected, however every time after that it leaves a duplicate in the original location and animates another. Image Example: My Custom Header: - (UIVi...

How do i get the effect of a UISwitch as the accessory for a UITableViewCell?

I have a working UITableView filled with some options for my app, and i want to add UISwitches to them just like the Settings app, how do i do this? Thanks :) ...

Basic iPhone table question

Hi, In IB, I dragged a UITableViewController object from the library into the project. Then, a tableview popped up. How do I get that tableview inside my already existing window? Thanks, I'm totally lost! Roger ...

Admob in iPhone with Tabbar and TableView

I'm having tab bar with 5 buttons. Out of 5 tabs, 2 are table views which uses navigation controller for showing sub views on click of cell. Above the tab bar, in each view I left some space for ads using "Admob". I'm adding ads using IB. But its giving EXC_BAD_ACCESS when its reaching "adMobAd = [AdMobView requestAdWithDelegate:self];" ...

EXC_BAD_ACCESS when calling pushViewController

Hi I have a UITableView inside a UITabBarController. When I'm calling [[self navigationController] pushViewController:myViewController animated:YES]; there is no problem. but, When I'm calling the same line from inside a UIActionSheetDelegate, for example: - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NS...

Customize TableviewCell depending on section

Hi folks, How do I customize the background image of a tableViewCell depending on the section, they are in? E.g. in section one, the cells are supposed to have a green .png image as a background image, whereas in section two, the cells are supposed to have a red .png image as background. Thank you for your help! gstar ...

iPhone SDK - How to scroll a UITableView programmatically with animation?

How would I scroll a UITableView to a specific position with an animation? Currently I'm using this code to jump to a position: //tableController -> viewDidLoad [self.tableView reloadData]; NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:0]; [self.tableView scrollToRowAtIndexPath:indexPath ...

Importing multiple records from sqlite db iphone sdk

I need some help! Please. I am trying to develop a very very simple application, basically just a simple book reader. Ideally, the first view would be a uitableview listing the names of chapters, then selecting the row would take you to a detail view that has the chapter which is broken up into segments. Note the segments are actually th...

UITableview titleForHeaderInSection not displaying correctly

I have some VERY simple code to return the title for a section header: - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { if (section==0) { return @""; } else if (section==1) { return @"Actions"; } else if (section==2) { return @"Attached To"; } retu...

UITableView Core Data reordering

I know this question has been asked before, and I took a look at the answer to this question. However, I'm still confused as to how to implement reordering with a UITableView in a Core Data project. What I know is that I need to have a "displayOrder" attribute in my Entity to track the order of items, and I need to enumerate through all ...

Add a UIView after a UITableView but before a UITabBar?

I'm trying to add a UIView, in particular a UIImageVIew, after (that is, below, but not in a z-index sense) a UITableView but before (that is, above) a UITabBar. You know, the typical "banner/adv space" that you can see everywhere. My main problem btw is that i don't know exactly where to put it, as a subview of wich view specifically;...

TableViewCells width in iPhone

Hi. I'm trying to create a cell on a tableview which doesn't go "all the way" from left-to-right of the screen. Basically, what I need is a cell which (as usual) starts on the left side of the screen, but with a given width, creating a free space on the right. Is there any way of doing it? I wasn't able to find any example. Sorry for...

UITableView insertRowAtIndexPaths then scrollToRowAtIndexPath draws cell twice

Hi I'm inserting a new cell into my table that I know will not be visible (I know it's off the bottom of the screen), so I then call scrollToRowAtIndexPath, e.g. [tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:myIndexPath] withRowAnimation:UITableViewRowAnimationBottom]; [tableView scrollToRowAtIndexPath:myIndexPath atScroll...

Customizing an UITableViewCell subclass

I would want to create a custom tableviewcell which should have a different appearance than the default implementation. For this I subclassed the tableviewcell and want to add a label, textbox and a background image. Only the background image seems not to appear. Maybe I'm completely on the wrong track here and maybe subclassing a UItabl...

How do I scroll a set of UIScrollViews together?

Setup: I have a UITableView, each UITableViewCell has a UIScrollView. What I am trying to do is to get all of the UIScrollViews to scroll together, such that when you scroll one of them all of the UIScrollViews appear to scroll simultaneously. What I've done is subclass UITableView so that it has an array of all of the UIScrollViews wit...

UITableView Group Style Cell background.

Hello, my question is simple.... How to get rid of the white background color of cells in Group Style. I know about clearColor but it just clears the background color of the tableview itself and not the background color of cells. Thanks in advance. ...