uitableview

UITableViewCell background image and selection problem

Hello everyone ! It's my first iphone app, and i have trouble with styling my tableView. I have two images (png), one for standard cell state, and one for selected state. In my subclassed cell, I tried the following : 1) setting up front the backgroundView and selectedBackgroundView UIImage *ib = [UIImage imageNamed:@"tab.png"]; UII...

Overlaying a view overtop of a UITableView

Hello stackoverflow, So I am trying to create a search that returns a bunch of results to a UITableView. When the user selects one of the cells, I want to overlay a detail view of that result in a nice, concise window. This view needs to have some text, buttons and a photo. I was looking into hacking an alertview but read that that i...

UITableView differentiate between swiping from left-to-right & right-to-left

How to differentiate between swiping from left-to-right & right-to-left in a UITableView cell. Anyone has some ideas? ...

problem with cellForRowAtIndexPath method in UITableView iphone (indexPath.row is null)

Hi All, Table view cell management has driving me crazy from past two days. Please check the code below and I will explain you the problem in detail.. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tabl...

Custom move accessory for UITableViewCell

Is it possible to use a custom view as the move accessory that appears on the right hand side of the UITableViewCell when a UITableView is in editing mode? ...

How to change UITableView with UISegmentedControl

ok, so I have custom cells with UISegmentedControl and UILabel - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *MyIdentifier = @"testCell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier]; if (cell == nil) { [[NSBundle mainB...

UITableViewController - disable selection

How can the ability to select cells in a Cocoa Touch TableView be completely disabled? I have managed to get my code to a state where selection seems not possible, but if you hold your finger on a cell for a moment or two it will turn blue (selected) until you move off it. How can it be completely disabled? ...

iPhone: UIImage as background of UITableCell

What is the best way to place an image as the background of an UITableCell? I was thinking of using the cell.contentView property, but it won't compile. Is there a preferred method of doing this? And maybe an example? ...

Update value in table cell on iPhone

Hey, If I have a tableView setup in an iPhone application with many rows, how can I update just one of those rows? I'm aware that they manually refresh as they come into view, but I'm looking to push out an update, for the sake of argument a timer counting down. Thanks ...

i want to fix my table view while i am scrolling

while i am scrolling my table view gets moving upwards .. i hav created table view programmatically without using IB so i should able to fix the position of table view while scrolling also... how to do this.. any suggestions appreciated.. ...

i want to display cells in table view with some gap between them

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [topics count]; } - (UITableViewCell *) getCellContentView:(NSString *)cellIdentifier { CGRect cellFrame = CGRectMake(0,0,320,45); UITableViewCell *cell = [[[UITableViewCell alloc] initWithFrame:cellFrame...

iphone: Find other UI Elements inside UITableCell without using IBOutlet

I have a bunch of custom UITableCells that I have built in interface builder. These are then associated with their correct cell index and every looks great in my tableView. Each cell has a few buttons, so rather than creating an outlet for each and every table cell button, is there a way to just "find" any UIButton types within the cur...

IBAction from a UIButton inside a UITableViewCell

I created a UITableViewCell in Interface Builder which I have added a UIImageView and a UIButton to. I have given the UIButton an outlet, and hooked it up to a IBAction with the touch up inside event set. I assumed it would call this method, as everything looked like it is hooked up: - (IBAction)pressedCheckbox:(id)sender { [sende...

sending reload data from custom tableview cell?

How would I go about sending a reloadData message to the tableView from a custom tableViewCell? ...

Getting nil in cellForRowAtIndexPath When heightForRowAtIndexPath has different sizes

Hello, I have a strange problem. I have a tableview with two sections. I am customizing them and on last row I have a button. When pressed, it reads the information from rows with the function cellForRowAtIndexPath. This worked well until I changed the last row's height : -(CGFloat) tableView:(UITableView *)tableView heightForRowAtInd...

How do I change the display order of sections in a UITableview populated from an NSFetchedResultsControler?

Hi There, I was wondering if anyone knew the best solution to defining a custom display order for the sections in a UITableView - I am loading the data using Core Data and an NSFetchedResultsControler, and I am successfully using NSSortDescriptors and also successfully grouping the items returned into sections using sectionNameKeyPath: ...

interesting UITableView Datasource behavior

So i have this very basic ipad view controller and i was doing some testing with multiple UITableViews in the same view. The issue I was having was when I selected a row, it would throw a EXC_BAD_ACCESS so I turned on the stack logging and found this *** -[VCTables tableView:didSelectRowAtIndexPath:]: message sent to deallocated instan...

uitableview's index is shrinking

hi, I have an app very similar to address book of iphone. The entire search and index stuff is implemented using the searchdisplay controller. The problem is, from the search results when i click some cell, it actually loads a new screen and while pressing back and going to home tableview screen the index is shrinks The possible reason...

Simple TableView Question

Hello, Is there any way to make it so that the user cannot swipe-to-delete items? I can't find this property anywhere!! This is Objective-C xCode iOS Thanks, Christian Stewart ...

How to Add 3 images to each row of a UITableView?

I have a collection of images that the number of them aren't determined and vary from 0 to 1000, anyone got an idea how can I present them to the user? I think I can add each three of them to a uitableviewcell but I don't know how. any help would greatly appreciated. :) ...