uitableview

Multiple Accessories in UITableViewCell

I'm designing a program where in one tableView I need the following: 1 textLabel, 1 detailTextLabel, and 2 cellAcessories. The accessories will looke like the disclosureButton, except the left most one will be a minus sign and the right one will be an addition sign. When you click each acessory it will increment or decrement an integer...

iPhone UITableView - Delete Button

I am using the 'swipe to delete' functionality of the UITableView. The problem is I am using a customised UITableViewCell which is created on a per item basis in - (UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath I need to alter the position of the delete button (simply to move it ...

How to put a UITableView in the center of a UIView

I am just trying to create a simple Twitter app. Currently I have a UITableViewController that shows everyones name and pictures in the cells. When the cell is clicked, it pushes a new UIViewController that has a UIImageView and a UITableView. Their name is displayed as the title on the Navigation Bar and their picture is shown in the UI...

UITableView didSelectRowAtIndexPath: not being called on first tap

I'm having an issue with UITableView's didSelectRowAtIndexPath. My table is setup so that when I select row it initializes a new view controller and pushes it. The first time I tap any row in the table, the method does not get called. Once I select another row, it begins to work as normal. I have verified this by setting a breakpoint ...

Window Based Application - Problems getting to next view/controller

I have a Windows based application. I have a series of buttons in the xib. When I click on one of the buttons I want it to load a table view or a web page or a text view (depending on the button). This is the code I am using to attempt to move to the table view (which has its own xib). It prints the NSLogs lines in the console. It d...

Iphone: Autoscroll on selected indexPath in table

Hi.. I`m working with a tableview controller where new rows are added manually by the user on a secondary controller and then returning to the tableview with the new row highlighted. I am using the following to highlight the row: [self.shoppingCartTableView selectRowAtIndexPath:self.selectedIndexPath animated:YES scrollPosition:...

Re-Using UITableViewCell in a function which is not UITableViewDelegate.

Hello friends. I have a different problem. I am creating my TableViewCells like: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell; UILabel *label = nil; NSString *cellIdentifier = [NSString stringWithFormat:@"Cell_%i", indexPath.row]; cell...

How can I get scrollViewDidScrollToTop to work in a uiTableView?

I think the title explains it all. I want to be notified when a user scrolls to the top of a tableview. I've tried the following with no luck and even added a UIScrollViewDelegate to the .h file. - (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView{ NSLog(@"ScrolledToTop"); } Thanks! Edit: I can get it to call if I press ...

how to set UITableViewCell background tranparent?

how to set UITableViewCell background tranparent? I am trying cell.backgroundColor = [UIColor clearColor]; But that is giving black color. Thanks & Regards. ...

Need access to the cell in the tableView:heightForRowAtIndexPath:

I need to access my cell in the table from tableView:heightForRowAtIndexPath: since I want to use the data I have ion the custome cell for the height calculations. The only way I have found to get my cells is to call tableView:cellForRowAtIndexPath: The problem with that is that calling tableView:cellForRowAtIndexPath: is actually creat...

Set the same default background of the UITableView to a custom view controller

I need to set the same gray stripped background to another view. Can anyone help me on this one? Thanks, Leonardo ...

IPhone SDK_A table view inside of a table view

I want to make a table view inside of a table view. I mean how can I make an app that clicking a cell goes to another list of cells to click to go subclass? ...

UITextView highlightedTextColor or similar option?

I have a custom UITableViewCell with a UILabel and a UITextView in it. I want the text for both of these to appear white when the user highlights the UITableViewCell. It's obviously very simple to set the highlightedTextColor of the UILabel, but the UITextView doesn't seem to have any similar type of property. Am I going to have to man...

What's the default size for the UIImage in a UITableViewCell?

I want to put a UIImage in the left side of each row in a UITableView. This is pretty standard, and is supported directly by UIKit. But putting in a (large) image causes all kinds of wonkiness, so presumably I'm supposed to scale the thing correctly myself. But none of the docs give a default size for this image using the standard out of...

Customize height of n cells in UITableView, but not all the same

Hi all, thanks to the folks here I already learned quite a lot on my way to a cool iPhone App I am working on. However, I was wondering if anyone found out how to manipulate a UITableView, so that a cell (any or, if that is not possible, it could only be the selected one) can have a different height. I know I can use something like thi...

UITableViewCell cell.editingAccessoryType not working...

I have a tableView. Everything it set up and working. I had cell.accessoryType working fine, but not once have I gotten cell.editingAccessoryType to work. It worked with that deprecated method, but with the new one...no luck. Here's my code, at least for the first section: - (UITableViewCell *)tableView:(UITableView *)tableView cellFo...

NSArray sort and isolate

I have an NSArray of names, I want to sort them alphabetically into a UITableView and separate them into sections. I have a tagged section at the top, being section 0. I want the names sorted aplhabetically to come after that. So all names beginning with A get put into section 1, B into section 2, and so on. I need to be able to someho...

Adding UITableViewControllers tableview to new UIView

Hi, I have a simple question. I have a normal UITableViewController displaying a UITableView. When the user taps a button in the top right corner of my application I want the TableView to flip from right to left and then display a new UIView. I've found the animation UIViewAnimationTransitionFlipFromRight which flips the current view an...

Implementing "add photo" button similar to the iPhone contacts app

I was curious if anybody knew the process to create an "add photo" image tile similar to that in the iPhone contacts app. It seems to be on the same level as a UITableViewCell which is shortened (if this is the way it is done). I've read a suggestion dealing with Headers or custom UITableViewCells but nothing definitive on how it was do...

problem with imageview when adding as a subview to the MyCustomButton.

Hi guys, My problem is I have a Custom button and ImageView to which I added the Image.I made this imageView to the custom button as a subview.when Im running it in simulator it workin fine,but when Im runnig it in Device it was not displaying the image in the button. I written the code as: In cellForRowtIndexPath - (UITableViewCell ...