uitableview

[IPhone] How to know when moving row is done

Dear all, My app allow user reorder rows in a view, but I want to reloadData after moving is done to change some thing (add some text to the first row). I tried to reloadData in moveRowAtIndexPath method, but it makes the app hang because this method is called many time (according number of rows need to be moved) and the table view is...

Tapping a UIScrollView to hide the keyboard?

I'm working on an iPhone app which involves typing stuff into a UITextView, which adds content to a UITableView. The problem is, I need to be able to close the keyboard when the user's done with it, and the only area that is really visible other than the keyboard and UITextView at this point is the UITableView. I'm having trouble impleme...

Tapping a UIScrollView to hide the keyboard?

(I posted this before anonymously, but then couldn't use the same computer again, so I'm posting it from my account now. Sorry to the guy who answered before.) I'm working on an iPhone app which involves typing stuff into a UITextView, which adds content to a UITableView. The problem is, I need to be able to close the keyboard when the ...

UITableView navigationController Section Index align after Navigation Header

In a Section Indexed UITableView how do you make the title of the section chosen (by pressing the Section Index) align *not* at the very top of the screen (under the navigation controller) but rather flush after the Navigation Bar Header at the top? like this: [button] Navigation Bar Header at top of screen [other button] X (section l...

Adding a button to last UITableView row

I'm developing an app where the user can choose between a number of included songs. I also want the user to be able to choose a song from his/her iPod Library. Currently the song is choosen by selecting it in a UITableView. So I figure I would like to add a new row at the end of the table and make it a button that will fire a MPMediaPic...

Problem with displaying Contacts like App on iPhone

Hi, I am trying to create a contacts like app for iphone where the name of contact is displayed on the top (to do this I am writing code in viewForHeaderInSection) and then the details follows in the grouped section. The problem is I am retrieving the values from database and if the first name is null it is displayed on the table. I wan...

Call selector on superview (UITableViewController)

I have a UITableViewController with a method called "sectionOpen". In this controller I have a UITableView with custom headers, which are in fact a UIViewController. I have attached a UITapGestureRecognizer to it, it works if I call a selector on the header's View Controller. The thing is I need to call a selector on the UITableViewCont...

UITableView data reloading problem.

I am working with a UITableViewController subclass, that is supposed to go from a "Login Table" (a table containing a UITextField for the username and for the password and a Start Session cell), when the user touches the "Start Session" cell the UITableViewController should be reloaded and just show one cell with a "Log Out" label. The ...

iOS iPad GUI deadlock on startup. Hung on splash screen.

My iPad app hangs on startup sometimes. It looks like the main thread is getting deadlocked with another thread but not sure why. Any ideas on what's causing this and how to debug this? FYI my app starts as a splitview controller with a listview on the left and a webview on the right. If I start in portrait mode with the list view hidd...

didSelectRowAtIndexPath problem

Hi All, I have a problem that I had working in a test but now in a bigger application I can't seem to sort out. First of I have a view that has six button each loads a different view I am using: - (IBAction)showInfo2:(id)sender { InfoViewController *Infocontroller = [[[InfoViewController alloc] initWithNibName:@"InfoView" bundle:nil] ...

UITableView horizontal scroll indicator

I have a table view inside a navigation controller, which is one view for a tab bar. Everytime I launch the app, the horizontal scroll indicator flashes briefly when i select this tab. Could this be related to the initial tab selected, which does contain a scrollview? I was under the impression that table views couldn't scroll horizo...

created sorted table in gtk

What's the easieest way to create a sorted table view in gtk? I'm not sure if that's the right term, but you know the one: Is there a built-in widget for this? If not, how would I go about making those columns that look slightly different, click to change sorting, etc. Note I don't need multi-column sorting at the moment. ...

UITableView position

hi, my app uses a tab bar with 2 navigation based views in which I am adding a custom view (a title bar) between the nav bar and the table view . - (void)viewDidLoad { [super viewDidLoad]; // load title bar controller TitleBarViewController *tbar = [[TitleBarViewController alloc] init]; [tbar setTitleImage:[UIImage imageNamed:@...

How can I resize a UITableView header?

self.headerView.frame = CGRectMake(0, 0, 320, 167); //this is a UIView doesnt seem to do anything. everything is hooked up in IB. ...

Problems setting background for grouped UITableView

I want to have a background image behind my UITableView. This works fine, but for each grouped UITableView it seems to be using my background image. I just want it to use the background image once: Note: This is all inside of a UITableViewController class self.view.backgroundColor = [[[UIColor alloc] initWithPatternImage:[UIImage image...

Is there an easy way to observe the visible cells in a UITableView?

I need to keep track of the visible cells in a UITableView, since certain events need to occur when cells that represent specific pieces of data become visible. UITableView doesn't seem to be KVO compliant for -indexPathsForVisibleRows or -visibleCells, and there's no UITableViewDelegate method that gives a hook for being notified that t...

Building UITableViewCells in Interface Builder

I am wonder if it is better to build my cells in Interface Builder, or programmatically? The reason I am leaning toward IB is that my cells are going to have a bit of customization, and it would be much easier this way. Are their drawbacks to the IB approach? Also, are there any good tutorials about how to use a cell in IB? ...

UIButton as part of UITableViewCell subview - make it work...

Hi all, I'm having some class which is a subclass of UITableViewController. on one of the TableView's cell I'm adding a view that holds a UIButton as subview (i.e. [someParentView addsubview:button]) I'm adding the view to cell like this: [cell.contentView addSubview:someParentView] I've set the UserInteractionEnabled both for the butt...

UITableView delegate action when tableView is scrolled?

Hey! Is there a UITableView delegate-action that runs when the tableView is being scrolled? This is probably really easy, but I can't find it. Thank you :) ...

Apple's UIKit experience versus .net experience

I am new to iPhone programming. Coming from a .net background, I find Apple's UIKit really difficult to use. For example, creating a simple static table view requires me to implement a lot of datasource and delegate methods. In .net, you just add the items and set their properties in Visual Studio, that's it! As my application is getting...