uitableview

One table view cell/row bigger than others? (iphone, cocoa-touch)

I know it is possible to set the height of all rows in a UITable but is it possible to set one row to be bigger than the others. For example when the user touches on the cell with 2 fingers I want the cell to expand and show a description. But only that cell. Is that possible without overlapping the cells below it? ...

touchesBegan for UITable's Cell

How can I use touchesbegan in a table's cell without having to subclass a whole cell. Something like addTarget..... which is available for a UIButton? (in vb.net this would be like AddHandler I think) ...

iPhone UITableView row drag-move

How would you know if a row from UITableView has been move via drag? Is there an event to catch? ...

UILabel background color not updating in UITableView

I'm having a perplexing problem with a simple UILabel I put on a cell in a UITableView. I enter a separate view after tapping on a row, like many UITableViews. In there, I update the cell so that when I return to the rows, it should be updated, with this: MyTableViewCell* cell = (MyTableViewCell*) [mTableView cellForRowAtI...

How to scroll to the bottom of a UITableView on the iPhone before the view appears

I have a UITableView that is populated with cells of a variable height. I would like the table to scroll to the bottom when the view is pushed into view. I currently have the following function NSIndexPath *indexPath = [NSIndexPath indexPathForRow:[log count]-1 inSection:0]; [self.table scrollToRowAtIndexPath:indexPath atScrollPosition...

Can I add an alphabet jump list to a tableview like the contact list

I would like to create a custom contact list in my app offering a similar A-Z jump list like the standard contact list does. Is this possible with a TableView? ...

if statement on UIButton within didSelectRowAtIndexPath

hi guys, i have a UITableView , within each cell i have 2 custom buttons, what i want to do is withing the didSelectRowAtIndexPath method i want to do an if statement on which button was touched so i would effectively be splitting a cell in 2 but i have no idea how i could wright the if statements. any help would be greatly welcomed ...

Adding Insert Row in tableView

Hello everyone, I have a tableView that loads its data directly from a Core Data table with a NSFetchedResultsController. I'm not using an intermediate NSMutableArray to store the objects from the fetch results; I basically implemented inside my UITableViewController the protocol method numberOfRowsInSection and it returns the numberOf...

Properly setting up willSelectRowAtIndexPath and didSelectRowAtIndexPath to send cell selections

Feel like I'm going a bit nutty here. I have a detail view with a few stand-alone UITextFields, a few UITextFields in UITAbleViewCells, and one single UITableViewCell that will be used to hold notes, if there are any. I only want this cell selectable when I am in edit mode. When I am not in edit mode, I do not want to be able to select i...

UITableView: Highlighted cell after switching back views

Hi, I'm using a UINavController together with some UITableViews to display a kind of drill down for some data (e.g. like the Contact App). Works well. The only problem I have is, when I select a cell in the first table view it is highlighted, then the view switches to the next level and then, if I go back to the first level, the cell is...

iPhone App Development - UITableView DetailsView

Hi, I have a UITableView with a list of items such as item1, item2, item3, item4 and so on. If I select on item1, it will go to the detail view of item1 (which is controlled by DetailsViewController). What I am trying to do is to add a button called "Next" on DetailsView. When clicked, the DetailsView will refresh and show item2. When...

iPhone Tableview Use Cells in Horizontal Scrolling not Vertical

Hi Guys This is not an uiview orientation question, I want to Have the iphone in Portrait or Landscape, and I want a standard tableview(controller?) that will display cells in a vertical strip down the iphone and the tableview scrolls horizontally. -I.e. a 100% normal tableview, that is rotated 90deg without rotating the phone orientatio...

Fetch a label from tableView cell iphone sdk

Hi all, In my application I'm adding a label to tableView cells using "cell addsubview" and not "cell.contentview addsubview". I'm assigning a tag to that label, but I'm not able to fetch it using "cell.contentView viewWithTag:1". I perfectly understand that the label is not on contentView, but then how do I fetch it? It's urgent. Th...

How set accessory type when tabel view is enbled to editing?

Hi Guys, I am using the UITableView properties to edit it. theTableView.editing = YES; theTableView.allowsSelectionDuringEditing = YES; It is working fine, the row is selected and I am getting into the next controller but I need to display the the accessoryType in the row. I am using below line for that but even though it is not worki...

Handle row deletion in UITableViewController

Hello, I hava a UINavigationController. The first level is a UITableViewController, the second level just shows details on one of the items of the table view. In this detail view, I can delete the item. It deletes the underlying managed object. When I pop back to the view, I have a crash. I understand why, it's because I didn't updat...

iPhone: Grouped tables and navigation controller issues

Hi there, I've set up a grouped table on my app, and pushing to new views works fine. Except for one thing. The titles and stack layout are all weird. Here's the breakdown: I have two sections in my table. When I tap on the first row in the first section, it takes me to the correct view, but the title of the new view is the name of th...

UITableView populating EVERY OTHER launch

I am having a problem that I cant seem to get to the bottom of. In my view did load code, I am creating an array and attempting to populate the table. For some reason it only populates the data on EVERY OTHER time the app is run. I put logs in viewDidLoad which runs as does viewWillAppear and outputs the correct count for the array. ...

Iphone SDK - adding UITableView to UIView

Hi, I am trying to learn how to use different views, for this sample test app, i have a login page, upon successful logon, the user is redirected to a table view and then upon selection of an item in the table view, the user is directed to a third page showing details of the item. the first page works just fine, but the problem occurs ...

UITableView Header Selection

Hello, Can anyone explain me how can I detect a selection in a table view Header view like in tableView:didSelectRowAtIndexPath: ? It would be very useful for me. I've defined the header as UITableCellView so I could attach a UISwitch as an accessory view, and it worked great but now I can't detect the changes made in the switch. Any su...

iPhone Advanced table view cells example

I have been going through and re-creating Apple's "Advanced Table View Cells" example to better understand everything. I have done everything, but somehow missed one detail and I can't figure it out. If you launch their example (http://developer.apple.com/iphone/library/samplecode/AdvancedTableViewCells/Introduction/Intro.html) and ope...