Hi all,
I'm having a tableview with 20 rows and 250 as their rowheight. While I'm at the bottom of the tableview, I want to shift the tableview upwards by 65px. I tried doing
self.tableView.contentInset = UIEdgeInsetsMake(-65.0f, 0.0f, 0.0f, 0.0f);
Also
self.tableView.contentInset = UIEdgeInsetsMake((4633.0f - 65.0f), 0.0f, 0.0f, 0.0...
Hi.
So I have a UITableView where one of its rows is a UITextView.
When the user is writing something to UITextView (using the keyboard) the user can scroll the tableview and select another cell. Everything works.
When the user selects another cell, a datePicker appears, and the user can select a given date. I want the user to be able...
I am doing a comparison in
- (CGFloat)tableView:(UITableView *)tblView heightForRowAtIndexPath:(NSIndexPath *)indexPath
It seems like performance of my app really slows down when I check if a cell.detailTextLabel.text isEqualTo:@"None";
What is a better way of doing the comparison and setting the cell height?
...
I used this guide: http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder to be able to create my own custom UITableViewCell with a nice background image in interface builder. But I would like the style of the cell to be UITableViewCellStyleSubtitle to still be able to use textLabel and detailTextLabel ...
I have a UITableView that is re-using cells when the user scrolls. Everything appears and scrolls fine, except when the user clicks on an actual row, the highlighted cell displays some text from another cell. I'm not exactly sure why.
#define IMAGE_TAG 1111
#define LOGIN_TAG 2222
#define FULL_NAME_TAG 3333
// Customize the appearance o...
Hi,
I'm working on a iPhone app which has a pretty large UITableView with data taken from the web, so I'm trying to optimize its creation and usage.
I found out that dequeueReusableCellWithIdentifier is pretty useful, but after seeing many source codes using this, I'm wondering if the usage I make of this function is the good one.
Her...
Is there a way to tell a UITableView to preload all rows?
The tableView is supposed to show several comments (up to 80 comments).
So my CommentCell uses a Setter to adapt the cell to a specific comment.
-(void)setComment:(Comment *)newComment {
if (newComment != comment) {
[comment release];
comment = [newComment retain]...
Hey all,
I have a UITableView which shows some information. The informations are from a XMLFile.
The Xmlfile is pretty big, about 500 entries.
I don't want that the user has to wait until the parsing has finished, i want to add cell by cell to the TableView.
Here's my code:
-(void) onFinishedPartDownload:(id)item
{
if(odvTableVie...
A view with a table gets pushed onto the screen and I want it to scroll to a certain row in the table before the screen actually displays. I use this code within the final viewcontroller.
NSIndexPath *scrollToPath = [NSIndexPath indexPathForRow:5 inSection:0];
[theTable scrollToRowAtIndexPath:scrollToPath atScrollPosition:UITableViewSc...
I have a UITableViewController that contains a tableView. I want to set its scrollView delegate to self, but I am not sure how to do that? if i call
[self.tableView.delegate = self]
It will set the UITableViewDelegate to self, and not the UIScrollViewDelegate
...
on my tableview i have the last cell that is not initially visible as seen in the first image, when i scroll the list up, you can see in the second image that the price or my detailTextLabel is put on a new line not maintaining the right justification.
Here is the code, i can't figure out why its doing this, any direction or help w...
Hello -
My iPad app was rejected due to my use of a picker. The picker was used to control a table view. In my view, a picker was displaying a series of items and when one of those items was selected, it used that selection to populate a table with data. (hopefully that makes sense). Now I need to do this without the picker so I need t...
Hello All,
I am using a UiTableView in our application.We have two tabs in controller one is add to shopping list where i add more than one items in our shopping list in database,other one is shopping list which shows items for shopping.
The problem is that when i add items from shopping list tab then items are successfully added in da...
I have a table view and want to allow reordering of all cells, however there are certain cells that i do not want to be allowed to be deleted. when the UiTableView is put into deletion mode i do not want the red '-' button to appear on the left hand side, and do not want the swipe gesture to bring up the Delete button of these cells but ...
I thought that would be very common and easy iPhone App. In the main app I connect to database, retrieve values from database (NSDate converted to NSString)n and put into single array. Then in one of the views I populate UITableView with elements from the array. UITableView is grouped (sections). I step through array to discover number o...
I have a TableViewController which display a list of NewsItem objects:
@interface NewsItem : NSObject {
NSString *feedID;
NSString *title;
NSDate *published;
}
I'm trying to implement a Table View Controller (multiple sections) that can display the list in two ways:
One divide News Items into sections which based on Pu...
Hello all,
I have a pretty simple UITableView who's cells contain UITextFields and I need to be able to call resignFirstResponder to hide the keyboard whenever a user touches the UITableView outside of one of the cells.
I have read this question/answer but it seems like a very rudimentary way to achieve this. I have read about a way to...
Hello,
I have a custom UITableViewCell. However, when I got in edit mode, I don't have any Delete and Move indicators appearing. The custom cell draws itself in the contentView.
In layoutSubviews, I make sure there is space on the left and one the right of the contentView so that the controls can appear (if this was the problem).
- (v...
I have some data i want to add in to my app...about 650 categories (includes a name + id number), each with an average of 85 items (each with a name/id number).
Will the iPhone support such a large plist? I want to first display the categories in a UITableView, when a category is selected I want to display all of the associated items. H...
Hey.
Recently edited to adapt to some answers and to improve readability
I am loading in data to a UITableView, from a custom UITableViewCell (own class and nib). It works great, until I try to access the objectAtIndex:indexPath.row for some arrays.
I'll post my code first, it will probably be easier for you to understand what I mean ...