uitableview

Issues adding search to iPhone app

Hi, Basically I'm trying to add a search function to my iPhone app, but I'm not having much luck at the moment. I've downloaded the Apple provided Table Search app, and have copied across the code to mine. It builds OK, but here's the problem. Unlike the Apple example, all my data is stored in an array, that is accessed by calling [ciPa...

Iphone NsMutableArray Count

I have a struct SystemStruct *sharedStruct = [SystemStruct sharedSystemStruct]; implemented as a singleton, to share 3 Arrays. the problem is that when i try to count the array's objects the system crash. es: This code Crash: - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { SystemStruct *Sha...

Serious Application Error

I have a TableView controller class that uses a fetched results controller to display a list of 'patient' entities taken from a Core Data model. The sections of this table are taken from a patient attribute called 'location'. Here is the sort descriptor for the fetch request: NSSortDescriptor *locationDescriptor = [[NSSortDescriptor all...

Using sectioned tables from an sqlite file with an iPhone uitableview

I am currently trying to make a sectioned table like this: Section 1: Entry 1 Entry 2 Entry 3 Section 2: Entry 4 Entry 5 Entry 6 Section 3: Entry 7 Entry 8 ... However, using this code: Event *lists = (Event *)[eventList objectAtIndex:indexPath.row]; accessStatement = "select * from DatabaseName"; [self findEvents]; // Code that b...

Grouped UITableView shows blank space when section is empty

Hello, I have a grouped UITableView where not all sections may be displayed at once, the table is driven by some data that not every record may have. My trouble is that the records that don't have certain sections show up as blank spaces in the table (see picture) There are no footers/headers. Anything I've missed? - (NSInteger)ta...

complete tableview with data tutorial posted on youtube

there is a great tutorial about tableview posted on youtube that contains 5 parts. Unfortunately, I reload videos and checked several times the code and application keep crashing. link 1st part: http://www.youtube.com/watch?v=tMo8T1uh77E Anybody that also follows this tutorial to discuss possible failure? thanx ...

UITableView with Custom Cell only loads one row of data at a time

I want to build a train arrival time reference app, that lets me choose different stations and displays times from A to B, and times from B to A. So I'm using Apple's Page Control because I want to have multiple pages for each station, and each page would list all the train times. Here's my appdelegate: #import "AppDelegate.h" #import "...

iPhone: How to Stop Animations in a View Before the View Deallocates

I have added custom animation to UITableViewCells. Each cell has its own animation. When I pop the view, the animations continue and I get a bad exec error because the animation is trying to access the deallocated cells. How do I stop the animations before the view is deallocated? - (void)tableView:(UITableView *)tableView accessoryBu...

UISwitch propagate state

Hello, I'm still rather new to iPhone development and I tried something I didn't it was possible. I have a UIView for my TableView Section Header with a switch on it, and I also have a UITableCellView with another Switch on it. It all looks fine, but now I want to propagate the UISwitch state from the section header to all the UISwitches...

iPhone: Same Rows Repeated in Each Section of Grouped UITableview

I have an app that is a list of tasks, like a to do list. The user configures the tasks and that goes to the SQLite db. The list is displayed in a tableview. The SQL table in question consists of a taskid int, groupname varchar, taskname varchar, lastcompleted datetime, nextdue datetime, weighting integer. I currently have it working ...

Changing UITabBarController More Item Colors

I have a UITabBarController with a "More" tab whose color scheme I would like to modify. Navigation Controller Nav Bar Colors I've been able to change the background color of the "More" tab's UINavigationController by subclassing the UITabBarController and adding the following code to the ViewDidLoad method: UINavigationController *mo...

UISegmentedControl with UITableVIew NSRangeException

Hi, I am using one UIViewController as shown: @interface RssViewController : UIViewController <UITableViewDataSource,UITableViewDelegate,BlogRssParserDelegate> I am displaying an RSS feed in the UITableView (in RssViewController) depending on the segment selected on the UISegmentedControl. My app crashes when I scroll the tableview...

Pop-up modal with UITableView on iPhone

I need to pop up a quick dialog for the user to select one option in a UITableView from a list of roughly 2-5 items. Dialog will be modal and only take up about 1/2 of screen. I go back and forth between how to handle this. Should I subclass UIView and make it a UITableViewDelegate & DataSource? I'd also prefer to lay out this view in ...

reloadData not working - suspect cell's reuseIdentifier

I have a view controller that gets presented modally and changes some data that effects the data in a uitableview in the modal's parent view controller (a table view). I call the tableview's reloadData method when the parent view reappears. I have confirmed that this code gets hit with a break point. My trouble is, reloadData isn't work...

Mimic behaviour of UITableView section headers staying visible during scroll

When you have a sectioned, plain-style tableview on the iPhone, such as in the Contacts app, the section headers remain visible when you scroll past them until they are pushed offscreen by the next section header. Does anyone know how to achieve something like this in an ordinary scrollview? I already have one scrollview nested in anoth...

iphone sdk - select a cell in a tableview, with code

hi guys I would like to select a cell in a tableview, except with code before any user interaction. Is this at all possible, a quick search through the sdk notes doesnt yield anything. Where should I look? Regards ...

uitableview delegate methods are not called

hi all i got the problem that the tableview methods are not called the first time the tableview is shown. if i switch back to the previous view and then click the button to show the tableview again, the methods are called this time. i've to say that i show an actionsheet while the tableview is loading. the actionsheet i call in the Vie...

Passthrough tap from uitableview to superview

I have a UITableView which is a read-only, no-scrolling view. It's a subview of a view that manages taps. I'd like to pass through any tapping on the tableView to its superView. I've seen lots of examples of doing this, but nothing that seems to apply to the tableview. Any direction would be helpful. Thanks! ...

When and where should I add a view to a UITableView's footer?

I am populating a UITableViewController's UITableView through code only. At the bottom of the table I wish to position a button that scrolls into view as the user scrolls to the bottom of the table. When in the UITableViewController life cycle should I populate the table footer with a button? viewDidLoad? p.s. I wish to avoid using sec...

The best way to display data in a table view?

Hey guys, I'm trying to display nutritional information in a table view but am struggling about the best way to show the info. I don't want to create unique views for each page as that would take up a lot of space. My ideal avenue would be like a website having links to data pages instead of individual views for each page. How would I b...