uitableview

Object declaration in iPhone tableView

Hi, When i try to initialize an object inside the tableView:cellForRowAtIndexPath the simulator crashes. The code i used is Claimant *tempClaimant = [[Claimant alloc] init]; tempClaimant = [appDelegate.arrRetailClaims objectAtIndex:0]; NSLog(@"Claimant Name is: %@",tempClaimant.ClaimantName); Is there anything wrong with this. The s...

iphone sdk: Adding a subview to a tableView

Hi guys I want to add a UIToolbar on top of a tableView, but there is only one problem - the table lines can still be seen through the toolbar. I tried to set set the toolbar's alpha to 1.0 but this didn't work. This looks very odd because I only encountered it in UITableView. Any ideas? Thanks Alex EDIT: I figured out the problem. I...

Core Data on device vs simulator

I have a simple Core Data application, with a table view and a drill down view. When I build and run in the simulator, all of the data in my database loads and the table view/drill down views function properly. When I build and deploy to a device, my application only loads a small subset of the data (a few sections, A - C). I have no w...

Editable tableHeaderView in UITableView (like Contacts App)

Hello! I'm currently trying to implement a editable details view using a grouped UITableView. I'd like it to look like the Contacts application: in viewing-state it should display the header as plain label (in Contacts it's the name with TRANSPARENT background). in editing-state it should display the header as editable UITableViewCell...

How to increase the height of the cell in a tableview in iphone?

I am new to iphone development.I am parsing a xml file and displaying the title, date, view and summary in each row of a table.The contents of summar is big ,so only first 3 words are displayed in the cell.How can i increase the height of the row with respect to the length of the contents.All the content should fit properly inside the ...

UITABLEVIEW comes to a crawl when adding a UIABEL with cornerRadius to each cell

I'm adding a UILabel to each cell in my table view. This presents no problem innitially. When I round the corners of the UILabel using layer.cornerRadius scrolling the table view grinds to a halt. UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(cell.bounds.origin.x+10 ,5, 30, 30)]; label1.backgroundColor = ([[managedObjec...

iPhone SDK: Pushed view controller does not appear

I want to add a detail view for one of the cells in my UITableView. I've created a new view controller SyncDetailViewController) and a NIB for the detail view. Didn't make many changes in the new class. Just added a label and outlet for it and connected nib with view controller. Now I've added this code to my view controller (the one wi...

How to display a score overview

I am busy with a score overview and I was wondering what is the best way to do it. My first thought is that is would be an UITableView because of all the functionality it already got. But because of all the functionality it also has it limitation when you want to change the look. I was wondering what is a better way: An custom UITabl...

Adding string to a tableview iphone sdk

hi, i created a new project with a tableview already done by default with the add button which add dates. But the project is im not familiar with the nsmanagedobject thing. I want to add specific string to this not dates. thx for help!! NSManagedObjectContext *context = [fetchedResultsController managedObjectContext]; NSEntityDescriptio...

iPhone dynamic UIButton in UITableView

I'm creating a button for each cell row in a tableview. The button acts as switch to add the selected row as 'favorite' in NSUserDefaults. My problem is that whenever I press this button, a new one get drawn on top of the old one. How do I release/reuse it right? This is what my cellForRowAtIndexPath method looks like: - (UITableViewCel...

UISegmentControl switch views??

Hello all, I have a UISegmentControl in my app and im trying to make it switch views like the app store. Ive tried this code with no luck: - (IBAction)segmentSwitch:(id)sender { UISegmentedControl *segmentedControl = (UISegmentedControl *) sender; NSInteger selectedSegment = segmentedControl.selectedSegmentIndex; if (selectedSegm...

UITableView + UINavigationController = unrecognized selector sent to instance xxxxxxxx?

Hi, I'm creating an app which uses a UINavigationController (which's view's nib is RootViewController.xib) located in MainWindow.xib, and a UITableView in RootViewController.xib. I have this code: MainWindow.xib's UINavigationController TDAppDelegate.h // // To_DoAppDelegate.h // To Do // // Created by Radek Slupik on 14-02-10. ...

TableViewCells - Static Row Content

Hey, in the Apple Documentation: http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/TableView_iPhone/TableViewCells/TableViewCells.html There is an example (please scroll down to "The Technique for Static Row Content"). I built the three cells and linked them etc. and they are displayed when I built & go...

push multiple views from TableView to Tableview

Hi Out there, my app looks like this UINavigationController with UITableViewcontroller as RootViewController. feedsTableViewController = [[ablogFeedsTableViewController alloc] initWithStyle:UITableViewStylePlain]; feedsNavigationController = [[UINavigationController alloc] initWithRootViewController:feedsTableViewController]; feedsNav...

Is there anyway to populate a UITableView with an array but persist checkmarks?

Hello all, I have an app that has a tab bar, each tab contains a separate table. The first table uses core data to persist its entries and checkmarks. The second table on the second tab uses an NSMutableArray to populate it (I would use core data but I would have to pre populate it and this table does not allow that) I would like to per...

UiTableView records Problem.

Hello All, i Have some problem. i have 25 records in my NSMutableArray and i want to display them 5 records at a time when user press Next button then another 5 records to display and when user press back button then previous 5 records to display. How can i do this any help from you would be great. Thank You. ...

How to enable user interaction on UITableViewCell contentView while in edit mode?

Is it possible to enable user interaction on the contentView while in edit mode? ...

Grid view in iPhone SDK

Hi, I would like to create a grid view in my iPhone app similar to that shown in the iPad photos app. I know that the iPhone 3.2 SDK is under NDA, but is there a library or framework available for adding this kind of functionality (non-SDK). Ideally I would like to eventually develop an iPad version of the app, where the grid would be 3...

UITableView slow, even with just a few objects?

- (void)viewDidLoad { [super viewDidLoad]; [self.tableView setRowHeight:100]; [self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone]; [self.view setBackgroundColor:[UIColor groupTableViewBackgroundColor]]; } #pragma mark - #pragma mark Table view data source // Customize the number of sections in the tabl...

How to persist a checkmark with a table populated by a plist?

Hi all, I have an app where when the user taps on a cell I would like for a check mark to appear and be persisted. So far this is my code. -(void)viewDidLoad { [super viewDidLoad]; NSString *path = [[NSBundle mainBundle] pathForResource:@"AirportList" ofType:@"plist"]; NSMutableArray *airArray = [[NSMutableArray alloc] initWithContent...