uitableviewcontroller

UITableView custom popping

Okay, I made an app that has a list of items as a main view, and when you select an item it pushes a detail view controller. In this detail view controller you can switch between items. I want to be able to push a view, scroll a few items, and pop the view as if the current item was initially selected. I want to push a view, and then whe...

iPhone UITableViewController and Labels related.

I have a UITableViewController List showing text containing hyperlinks and I have a label which displays hyperlinks in a special manner so that they are clickable. I want that, when a user clicks on any UITableViewCell then the label would turn on the links in clickable form and when the user scrolls the UITableViewController List the L...

Tableview not drilling down

Ok, Here is the code in my AppDelegate that loads the Schedule nib. Schedule *newestVideoController = [[Schedule alloc] initWithNibName:@"Schedule" bundle:nil]; newestVideoController.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"Schedule" image:[UIImage imageNamed:@"app-icon_2_newest.png"] tag:2]; NSArray *controllers = [NS...

Monotouch UITableView delete row

Hey - I have the following method on my UITableView controller public void RemoveEventFromList(Event evt){ if (_sessions != null) { if (_sessions.Contains(evt)) { _sessions.Remove(evt); } } this.tableView.ReloadData(); } which do...

Why is a UITableViewCell 1px taller than the row height?

I have a UITableViewController. In viewDidLoad I set the rowHeight: self.tableView.rowHeight = 43; But then in cellForRowAtIndexPath, I check the height of the cell: NSLog(@"bounds: w = %f, h = %f", cell.bounds.size.width, cell.bounds.size.height); This prints a height of 44 and a width of 320. Anyone know why it would print a he...

Design UI programmaticly

Hi there I'm trying desperately to design my UI programmatically. But I think I'm in trouble to understand the concept. Basically I want a UI which contains different UIViews and a UITableView. But now I'm stuck with the UITableView... So my "main view" which should contain all these views is called AddListViewController(it inherence ...

App crashing when setting delegate and datasoruce

If I want to set my delegate and datasource for my uitableview my app crashes. What I'm doing wrong? - (void)loadView { NSLog(@"AddListViewController"); ShareListViewController *shareListViewController = [[ShareListViewController alloc] init]; UITableView *shareListView = [[UITableView alloc]initWithFrame:CGRectMake(100, 30, 100, ...

viewWillAppear not called in UITableViewController ?

I have a couple of UITableViewController classes and I just noticed that these methods aren't being called: -(void)viewWillAppear:(BOOL)animated; -(void)viewDidAppear:(BOOL)animated; I read in http://discussions.apple.com/thread.jspa?threadID=1529769&tstart=0 that I would have to call those methods myself when pushing view control...

IUNavigationController loading more viewControllers

Not a Noob as yesterday, but still green. I have a UITabbarcontoller and a IUNavigationController they seem to work fine. I have a UITableviewController to which I loads my NSMutable array. The user clicks a cell and didSelectRowAtIndexPath xib is loaded onto the stack. I have a 'Learn More' button on the current xib. I've tried a few...

custom cell based on row index iphone

I'm wondering if it is possible to add cell content to a uitableview based on the row index? For example if it is the first cell (row 0) I want to add an image and text. If it is the second row I would like to add a button. For all other rows I would like to just add a line of text. I tried using indexPath.row. It worked the first time...

iphone SDK: How to add image subview to UITableViewController and still see cells?

I'm adding an image subview to an UITableViewController with a grouped table. Once I add the image subview I can see the table headers on top of the image, but the cells are being drawn behind the image. Is there something else I need to do to ensure that the table cells appear on top of the background image? Here is the code I'm using...

Frame of viewForHeaderInSection is always the same size

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { if(section != 0) { UIView *view = [[[UIView alloc] initWithFrame:CGRectMake(10, 10, 100, 30)] autorelease]; view.backgroundColor = [UIColor redColor]; return view; } else { return tableView.tableHeaderView; } } This is my impleme...

Height of tableHeaderView seems to be 0

I tried to override the second tableHeaderView. But it seems that the height of it in the method heightForHeaderInSection seems to be 0. Can't explain it, do I have to put it in a iVar because in the viewForHeaderInSection I can set the view without any problems. - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection...

how to set a tableview delegate

Hi, I'm trying to use a tableview without using a nib and without using a UITableViewController. I have added a UITableView instance to a UIViewController Like So mytable = [[UITableView alloc] initWithFrame:CGRectMake(22, 207, 270, 233)]; [mytable setDelegate:self]; [self.view mytable]; Also I have added the following table view me...

iPhone: UITableView, Dragging Table Contents Causes Crash

Hello, I'm new to iPhone application development. I'm trying to understand how to use UITableView. I'm wrote simple code: - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 1 ; } - (UITableViewCel...

UITableView section headers drawing above front subview

I have a UITableView whose data have sections. I display an overlay view on top of tableView that dims it when searching: - (UIView *)blackOverlay { if (!blackOverlay) { blackOverlay = [[UIView alloc] initWithFrame:[self overlayFrame]]; blackOverlay.alpha = 0.75; blackOverlay.backgroundColor = UIColor.blackCo...

What is a good way for a custom accessory view in a UITableViewCell to message the table view controller?

Hi Everyone, I am working on adding a custom accessory view, (a button) to a UITableViewCell, and I need it to tell the table view when it is touched, but I can't figure out how to communicate to the table view what button was pressed. Ideally I'd like to somehow call a function like this: [controller tableView:view didSelectCustomButto...

Handling touches in UITableViewController

I want to implement the handling of an additional swipe gesture in my UITableViewController. However, it seems that in the case of tableviews the usual touch handling methods like -[touchesBegan::] of the controller are not called. How can I handle touches on a UITableView? ...

How can I create a custom UIToolbar like component in a UITableViewController?

I have a UITableViewController. I want a "toolbar-ish" component at the bottom. I started by using a background image and a button. In interface builder, I added them to the bottom of the iPhone screen. The problem I ran into was that the background image and button scrolled with the table. I obviously need this fixed at the botto...

Handling empty UITableView in UITableViewController

I have a UITableViewController that is populated with some data. If the data comes back empty, obviously the table is empty. What is the appropriate method to use to handle this case and put up something like a UILabel with "No Data Available". I have been using - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(N...