I'm assuming you're using something like "radios_tv. Delegate = self" when you're also doing "presets_tv. Delegate = self You'd have to use different actual delegate objects.
Maybe you could create a new class from NSObject conforming to the UITableViewProtocol, instantiate them in your view controller and assign them as delegates respectively when creating the table views.
I hope I didn't misunderstand you here but. Why don't you specify a different delegate for every UITableView? I'm assuming you're using something like "radios_tv.
Delegate = self" when you're also doing "presets_tv. Delegate = self". You'd have to use different actual delegate objects.
Maybe you could create a new class from NSObject conforming to the UITableViewProtocol, instantiate them in your view controller and assign them as delegates respectively when creating the table views.
No I don't use "radios_tv. Delegate = self" nor "presets_tv. Delegate = self".
In fact I don't know what this means. I'm a newbie :p – okayasu Aug 2 '10 at 14:20 What he's saying is that you should create two new classes (which are regular NSObject ones) and then set one of them to be the delegate for one of the table views and the other one the delegate for the other. – Kalle Aug 2 '10 at 17:15.
You were right jasonapple. Here is my cellForAtRowIndex // Customize the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = tableView dequeueReusableCellWithIdentifier:CellIdentifier; if (cell == nil) { cell = UITableViewCell alloc initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier autorelease; } // Configure the cell... // Set up the cell MyAppAppDelegate *appDelegate = (MyAppAppDelegate *)UIApplication sharedApplication delegate; if (tableView == radios_tv) { //radio_tv is an IBOutleet UITableView sqlClass *aRadio = (sqlClass *)appDelegate.
Array_radios objectAtIndex:indexPath. Row; cell setText:aRadio. R_name; return cell; } if (tableView == presets_tv) { //preset_tv is an IBOutlet UITableView } } Can you help me please.
I'm trying to put 2 TableViews on a single UIView. I've implemented the methods needed. I've tested the apps with breakpoints and the project fails at this method.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.