uitableview

iPhone: add an image to grouped uitableview section header?

I know I can change the way the section header looks by implementing viewForHeaderInSection: The thing is I want to add a UIImageView to the right of the header text without modifying the look of the already existing label. I can create my own view and add a UILabel and a UIImageView, but then, I'd have to setup the label color and fo...

How to delete cells from a table view?

I have an Edit button in my navigation bar, and I have an table view. My edit button calls an -editAction method. And then, I have this piece of code to delete a cell, but I don't know how I can make the edit button to call this code...or how the edit button can let the table view display those red delete circles for every cell, which ...

How to display Two tables on a UI view

Hi there, I would like to use and display two tables on a UI view. Please let me know how to do this. Any code same will also be appreciated. Thanks, Sandeep ...

Parsing XML without attribute and display it in UITableView in iPhone Programming

Hello all, I'm newbie in iPhone Application Programming. I can't get value from XML file and display it in UITableView. I need to get the name value of animal. How is the simple way to parse XML without attribute? I've been read NSXMLParser Documentation but the data is not displayed in my UITableView. Here is my XML file : <?xml versio...

uitableview reloadData - how do we table refresh is done ?

I want to do a reloadData on a UITableView and after the table refresh is done, I want a delegate method to be called when I can know that the refresh is done. How do we know that ? ...

Unable to swipe delete first row of table in iPhone app

Hi everyone, I have an iPhone app that utilizes TableView to list tagged items that the user has saved. I have Swipe to Delete enabled for these items yet I'm running into an issue with the very first item in the table. All other items show the "Delete" button when swiped, but it does not work for the very first row. I've searched an...

Reorder a tableview and save it to a plist

Hi I have a plist with some fixed data, for example orange apple banana I want to populate a tableview with this data, and the users reorder the table view, and then save the plist with the new order. Which is the best way to do this? Any tutorial that show how to do? A lot of thanks ...

Need approach to show tables using segmented control?

Hi there I using a segmented control on a view. With the help of this segmented control I would like to display to different tables on my view, Suppose I have two segments in my table on tap of segment 1 I would like to display table 1 and on tap of segment 2 I would like to display table 2 my table 1 is a Plain table and table 2 is a gr...

Add UIView behind UITableView in UITableViewController code

I would like to use a fixed image as the background in a simple grouped table view in my iPhone program. Unfortunately, no matter what I do, the background is always solid white. I have followed several supposed solutions on this site and others to no avail. Here is the relavant code in the viewDidLoad method of the table view control...

iPhone - scroll UITableView to index

Once my UITableView has been populated with data, I want to scroll to a specific index. I think this is how you do it: [[self tableView] scrollToRowAtIndexPath:[NSIndexPath indexPathWithIndex:3] atScrollPosition:UITableViewScrollPositionMiddle animated:NO]; The problem is when I'm supposed to run this. How do you know when a table has...

App view feels like it's "LAGGING"

Most of the views in my app are UITableVlews inside a UIViewController. My App feels like it's lagging when trying to scroll through the tables. I was wondering (1.) if it is better to create the cell objects in the table view, or create them at runtime and add them to the cells subview? examples: - (UITableViewCell *)tableView:(UITabl...

Change the table View when segmented Control is tapped. Exactly as in APPSTORE app. How to do it?

I am having a SampleViewController in which a segmentedControl is added at the top below nav bar(not inside it).Now below the segmentedControl i want a tableView which loads from another class CommonTableViewController. When a segment is tapped the a new tableView from same CommonTableViewController should be loaded. How can it be done? ...

Multiple Cell Images

Can you place more than one image in a UITableViewCell? ...

Question about changing the first view my app loads

Starting from the top, I am making an application that in the new project section of Xcode, is a new view based application, that is using core data for storage. Xcode does an awesome job of populating lots of useful code for me so that when I click build, I have a bar at the top with edit and add buttons, and a plain uitableview that is...

iPhone - didSelectRowAtIndexPath - selecting row 26 or greater mystery

Hi, My UITableView has up to 50 rows in each section, populated by a plist dictionary which contains arrays (sections) which contains arrays (row objects) which contains two strings (row title / filename and file extension). Select row 1 - 25 (item 0-24) and everything behaves normally. But select a row greater than 26 (item 25) and th...

How to use a UITableView to return a value

How would I use a tableView as a value selector? So I have a series of input fields and what I want is when you select a cetian field it opens a tableview of options that you can pick from as a value for that field. Upon selecting an option it returns to the previous View with the selected value filling that field. ...

iPhone + resize UITableView

Hello All, I have a view in which I have UITableView (grouped style). In the Interface builder, I am resizing the UITableView so that it looks like a small portion in center of the screen. But when I run the application, UITableView takes up the whole area of screen and does not look like the small portion in center of screen (which I ...

UITableView has an "ugly" background image for dynamic height rows

I've created a UITableViewController which calculates the height for each row depending on the amount of text it contains. The code to calculate the row height looks like this: - (CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { CGSize constraint = CGSizeMake(CELL_CONTENT_WIDTH - (CELL_CON...

Accessing variables in UITableView crash my app

The application is very simple, a nevigationviewcontroller that navigates to a tableview. But when i´m accessing to langsarray, it crashes Here is the relevant code: MenuViewController.m -(void) Settings{ TestViewController *testvc = [[TestViewController alloc] initWithNibName:nil bundle:nil]; [self.navigationController setNavi...

One background image must be displayed on the whole.

I am new to iphone development.When i tried to displayed a background image for my table view ,image appears for every cells.I want display single image thats fits the screen and not displayed in every cell.Please help me out.Thanks. ...