uitableview

Is it possible to push a navigationController as a subView of UIApplication

Hello, does anyone know if it's possible to push navigationController as a subView of UIApplication. For instance like this [[[UIApplication sharedApplication]keyWindow]addSubview:[self.navigationController pushViewController:rvController animated:YES]]; This doesn't work of course else I wouldn't have asked the question;). But s...

UISearchDisplayController usage with network-fetched data

I have a UITableViewController subclass that renders a list of pre-set categories and fetches a list of sites/urls for each of them. I want to add a search capability that would allow to search by a site name. What I want is to have a usual search interface, that would start a search thread (that would fetch and process results) and the...

Problems making an UIImageView opaque on the iPhone

Doing as little alpha blending as possible is an important performance consideration for table view cells on the iPhone. I have table cells that are largely comprised of one big image view. I have set the UIImageView to be opaque, in both Interface Builder and programmatically, but the CoreAnimation instrument still shows that it is bein...

how to create custom sections in a tableview based on coredata entities

I'm just starting to learn coredata. In my core data model I have a date stamp (of type NSDate) which includes the date and time (I need this information). Now I would like to organize the Core Data table into sections by days. How can I do this. The only samples I found directly use a core data entity to create the sections, in this ca...

UITableView Swipe to delete: how to customize button and action?

I want to perform different action, not delete objects but archive them. When user swiped on tableViewCell I need to show "Archive" instead of delete. change "Delete" button text and color to something else. How do I customize "Delete mode" appearance? ...

How to get touch coordinates upon SELECTING a custom UITableViewCell?

When I touch (Touch Up) a UITableViewCell my ViewController's UITableViewDelegate method - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath is called. I need to get the x-coordinate of the Touch-Point at this time as well so that I can know what portion of the Cell was touched (non-accessory items...

How to get touch coordinates REGARDLESS of what "view" I may have touched?

In my ViewController, I have a UITableView with some custom cells in it. When I touch a cell I want to get the touch coordinates right there into my UIViewController. The problem is, I can only get coordinates from parts of the screen not occupied by the UITableView..., Whenever my touch falls in the parts of the screen with the UITableV...

Editing UITableViewCells in a UITableView

Regarding a UITableView in EDIT mode: I'd like to intercept touches or clicks on the green or red UITableViewCellEditingStyle icons that display when editing a UITableView. I'd also like to manually mark a specific row for deletion the way that clicking on the red icon automatically does. IE: if a particular row is associated with a ...

How do you do List/Detail Editing with a UITableView?

What's the best way to have a list of text items, tap on one and be able to edit it? How about going to a detail view? But then how do you get your change back into the UITableView? I suppose this could all be done with SQL or CoreData but since the UITableView is based on an array, can we just edit that element of the array and reset t...

UIButton not working in tableview cell

I've added a button to a tableview cell, but I'm having two problems with it: 1) I've invoked a setTarget:action: method on the button, but the action: method never gets called: [playButton addTarget:self action:@selector(playButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; 2) the cell itself ends up g...

Accessing instance variables from UITableView delegate methods

Question: I'm trying to access a variable from the UITableView tableView:didSelectRowAtIndexPath: delegate method. The variable can be accessed from the data source methods, but when I try to access it from delegate methods such as this one, the app crashes. I declare the variable in my .h file, and initialise it in .m file in the appl...

Iphone UITableView move Index with prefilled values

Hi Guys, I'm trying to enable my UITableView for being able to change the Index of values. Means that I have currently 6 values within an NSMutableArray which actually fills the UITableView. The user is already able to change the position of the Entries of the UITableView/MSMutableArray. As long as the application runs, the index cha...

Non scrolling tableViewHeader

First a little background info: I have UIViewController that contains a UITableView. In the loadView method (after initialization of the table), I set the UIViewControllers view to the table view with: self.view = tableView; What I want is a view on the top of the screen (before the UITableView), that doesn't scroll with the rest of th...

UITableViewCells to be in center of UITableView

Hi, I want that my 4 cells will be in the center of my UITableView. Can't scroll the UITableView. That there will be the same height above the first cell and below the last cell. thanks ...

Set row height from the height of an image loaded from a plist.

I have a UITableView that displays single large images in each cell. The names of the images are stored in a plist. I would like to adjust the hight of each cell to accommodate the height of the image. Does anyone know of a way to get the height for an image and use it to set the row height? I'm having trouble finding this one and rea...

hiding or adding a UIBarbuttonitem in tableview

Hello all , I have a question concerning hiding ,removing or adding a UIBarbuttonItem on UIToolbar. I have a UIToolbar and two items. I wish to hide an item on the toolbar and when I enter for example third UITableview it will appear. I've put this code in my viewDidload instruct = [[UIBarButtonItem alloc] initWithImage:[UII...

read a Dictionary type PSMultiValueSpecifier from NSUserDefault into a UITableView

Does anyone know how to easily read a Dictionary type PSMultiValueSpecifier from NSUserDefault into a UITableView control and save changes back to NSUserDefaults using iPhone SDK 3.0? If so, can you post some specific code to efficiently do this? ...

NSInternalInconsistencyException when last row is removed from the section

I have an iPhone 3.0 application that work with requests using Core Data. It has a view with all requests grouped by request status (sectionNameKeyPath:@"status" ). Also it has another view where the user can change the request status. I have a problem when there is one row/request with in specific group and the user edits the status of...

HOW add push new view from UITableViewCellAccessoryDetailDiscloureButton within a switch of a grouped table?

// Set up the cell switch (indexPath.section) { case 0: cell.text = [comedyShows objectAtIndex:indexPath.row]; cell.accessoryType=UITableViewCellAccessoryDetailDisclosureButton; break; case 1: cell.text = [politicalShows objectAtIndex:indexPath.row]; cell.accessoryType=UITableViewCellAccessoryDetailDis...

UITableView won't update properly (even with call to reloadData)

I am producing an iPhone app for which part of the interface is exactly like the 'Most Popular' section of the iPhone YouTube app. This 'popular' section is accessed from a Tab Bar at the bottom and the navigation bar at the top contains a UISegmentedControl to select 'Today, This Week, Month etc..' Because most of the app consists of...