I've got some UITableViewCells that need to change their height depending on the length of the strings inside. I'm calculating the necessary height inside tableView:cellForRowAtIndexPath:, and then storing it in a variable (self.specialRowHeight). Then I've got:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIn...
In a grouped tableview, the section headers and footers scroll with the cells. However, in a plain tableview, they are fixed to the top and bottom of the screen until the next section is reached.
Is there a way to override this action and make the headers and footers scroll with the cells in a plain tableview?
Thanks!
...
Hello all.
I have a question that is driving me crazy. It is all about updating, in realtime, an UITableViewCell with the value of an UISlider that is inside another UITableViewCell.
The problem
The cell is updated but It seems that the size of the Label in the cell does not addapt to the size of the value represented. I will try to ...
I have large images displayed in a grouped tableview. I would like the images to fill the entire width of the screen. I have been able to make this work using a tableViewCell interface builder, but in an attempt to improve performance I am now trying to do this programmatically.
However, I have not been able to get the image to be flush...
If i do a custom cell, is it best practice to...
put icons and labels all on one view and drop it to the contentView (assuming you want everything to shift in edit mode)
or
put all editable stuff (labels) on one view, and non editable (icons) on another view and drop them to the contentView
or
it doesn't matter because when the label t...
I am trying to figure out the best way to create a view like the app details screen in the AppStore app. I want a thumbnail and text content under it that all scrolls if the content is too long. Is this done in a tableview or a scrollview?
...
For some reason, I can not seem to change the default position of an image in a grouped tableview cell.
In the cellForRowAtIndexPath method I use the following to load the image:
cell.imageView.image = [UIImage imageWithContentsOfFile:MainImagePath];
I've been experimenting with the following to adjust the position of the image but h...
I have a UITableView whose contents are dynamically changing, like a FIFO stack. Cells are added to the bottom and removed from the top.
This works beautifully, and I can scroll to the indexPath so that the newest message always scrolls down to the bottom (Like a chat application).
Now.. I want to add a footer to that table section. ...
Hello all ,
I seem to be having a problem in my UITableView clicking behaviour. I'm using a Tree to create a hiearchy of tableviews.
My problem arises when I enter the following screen ( I produced some screenshots to clarify ).
1)
When I enter this screen
http://img129.imageshack.us/img129/4050/samplec.png
I can go to my next...
I am still in the process of getting myself acquainted with the iPhone SDK.
This is what I am trying to do :
I have a UIScrollView and each scroll view has an UITableView and I have implemented a custom UITableViewCell.
The desired functionality is initially there is no selection, then the user selects the row and scrolls and makes a...
I am devloping a game in which I am using a UITableView which has customCell (UItableViewCell).
In editing mode:
Only the reordering control of the UITableView should show.
Right now i am getting the delete and the reordering control.
How to get only reordering control while editing ???????
...
Hey everyone,
UITableview should only load cells that is visible at first right? My tableview is loading every cell initially which slows it down a lot. I'm using around 1000 rows. Only want it to load a cell when it has to (like user scrolling down). Anyone have any ideas why it's doing this?
...
I am not sure which one to use? cell.contentView sometimes give me weird errors like [uiview settext]...?? I was trying to setText to a UILabel*
...
This is my cellForRowAtIndexPath function. I could not get the setText to the label to work. Can you please help me out?
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UILabel *messag...
I'm working on an iPhone app with a search function, where writing search terms in a UISearchBar changes (filters) the output of the UITabelView below.
When user is editing the content of the search bar and deletes all of the text, the following code is executed in
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)se...
When I set up the tableview say with 4 rows, there are still extra separators lines below the tableview (or extra blank cells)
How would I remove these cells (like in this case I just need 4 top cells)
tblView = [[UITableView alloc] initWithFrame:[[UIScreen mainScreen] bounds] style:UITableViewStylePlain];
[tblView setDelegate:self...
I've seen some iPhone applications that use a custom image as the background for a grouped UITableView, instead of the standard gray lines.
How is this achieved?
...
I have an iphone app using a uitableview where I'd like the "reorder" controls to always be displayed, and have the user swipe to delete rows.
The approach I'm currently taking is to put the tableview in edit mode and allow selection in edit mode
self.tableView.editing = YES;
self.tableView.allowsSelectionDuringEditing = YES;
I then ...
I have a tableview with large images that fill the cells and the row heights are set based on the image size. Unfortunately, the table jerks badly when scrolling to the next cell.
I've been told that my tableview will scroll more smoothly if I cache the row heights and the images before they are loaded into the table.
All my data are st...
By default there is a single line separator in uitableview.
But I want to put my customized line as a separator.
Is it possible ? How ?
Thanks in advance for helping me.
...