uitableview

How can I adjust the space between sections in a grouped Table View?

I have a tableview that is basically four sections in length, designed for user input. I am not using headers or footers as of now. Section 0 has 4 rows. Section 1 has 2 rows. Section 2 has 1 row. Section 3 has 1 row. I want to have section 2 and 3 a little closer together and sections 0 and 1 a little closer together - basically co...

iPhone: Anchor UINavigationBar to bottom of screen

I am creating a UINavigationBar which works fine. But, it scrolls with my UITableView, which I don't want. How can I anchor the navbar at the bottom of the screen, so that it does NOT scroll? bottomNav = [[UINavigationBar alloc] initWithFrame:CGRectMake(0.0, self.view.frame.size.height, self.view.frame.size.width, 44.0)]; bott...

dataWithContentsOfURL is painfully slow

I have a SQLite dbase that has over 100 URLs for images. The images are NOT displayed in the tableview, however when a row in the tableview is selected, the appropriate image is displayed in the 'pushed' view controller. The problem is whenever a row is selected, the app freezes for a time until the view controller is finally pushed. I ...

How can I determine if a user has pressed on a UITableViewCell for 2 seconds?

I am using gesture recognizers: Initialize in viewDidLoad: UILongPressGestureRecognizer *longPressRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPress:)]; [self.view addGestureRecognizer:longPressRecognizer]; This is what longPress looks like: - (void)longPress:(UILongPressGestureRecogni...

Problem presenting a UIActionSheet from a double tap in UITableViewCell

I am presenting a UIActionSheet when a user double taps my cell: Tap Recognition in Cell Init: UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleDoubleTap:)]; [doubleTap setNumb...

How to create Footer view in the table view Using View Controller in iPhone

Hi Friends, I want to create a footer view in my table view.I have created view controller and add a subview as table view. So how can i add the footer view in that table view?. Note: I have used only view controller, not table view controller. I haven't used table view controller in my apps, bcoz i have used many controllers as subvi...

iPhone: How to Place a Scrollview Inside of Tableview Cell

I want to put a scroll view inside of the table view cell. I have a number of buttons in one cell of table view and I need to scroll that cell to show the appropriate button. ...

Load a particular NIB based on tableview selection

I have an initial table view that I created as the initial menu within my app. Obviously each option will access something different including NIBs. Part of the constants for the menu options is the NIB. When each option is pulled from a PLIST, I also include which NIB I would like to be called upon. Am I missing something or am I just ...

Problem making UITableViewCell text white when selected

When my user clicks on a cell I want the text to turn white: - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; lblName.textColor = [UIColor whiteColor]; lblTime.textColor = [UIColor whiteColor]; } This works fine, but when the user selects another cell, the previ...

Deleting multiple (not yet loaded) rows in UITableView.

Hi, I'm having a bit of trouble trying to delete rows that haven't been loaded (or not visible) from a UITableview. My setup is as follows - There are two sections in the tableview and each element in section 1 is associated with multiple elements from section two. To give you an example (The data isn't really related to what I'm try...

how to decrease cell size to 280*35

i need to decrease table view cell of navigation controller to 280*35.. i hav tried with cgrect its not working ... how can i set ...

populate UITableViewCell with JSON Base64?

Is it a good idea to return thumbnail images in base64 through JSON in a RESTful call for populating UITableViewCell's? Or should one really make n requests for n images (lazy loading)? What's better? Thanks! ...

UITableViewcell UIColor

I'm trying to find out how to set UITableViewCell background color to the "grey" used for example in the official clock application for alarm cells. I'm unable to find that out in system colors nor elsewhere. How do I set this color? ...

How to unselect a UITableViewCell when UITableView has scrolled?

How can I unselect a UITableViewCell when UITableView has scrolled? ...

Does using Quartz layers slow down UITableView scrolling performance?

I have a UIImageView that is being rounded on my custom drawn UITableViewCell: rect = CGRectMake(13, 10, 48, 48); avatar = [[UIImageView alloc] initWithFrame:rect]; [self.contentView addSubview: avatar]; CALayer * l = [avatar layer]; [l setMasksToBounds:YES]; [l setCornerRadius:9.0]; I ...

How can I split a UITableViewCell?

I would like to achieve a UITableViewCell to look like this image (following/tweets/etc): ...

Memory increase from cellFromRowAtIndexPath in UITableView

I have a UITableView with a cellForRowAtIndexPath method that creates a UITextView, then adds it to a cell. No memory leaks were detected, but when running Instruments (Object Allocations), the Net memory is on a one-way trip to 18 MB, where it crashes. My app constantly adds and deletes cells in the tableView datasource, but because t...

Determine if a tableview cell is visible

Is there any way to know if a tableview cell is currently visible? I have a tableview whose first cell(0) is a uisearchbar. If a search is not active, then hide cell 0 via an offset. When the table only has a few rows, the row 0 is visible. How to determine if row 0 is visible or is the top row? ...

UITableViewCell background (pattern)

I am using a custom uitableviewcell and am trying to recreate a loose-leaf piece of paper for the background. Since each cell can grow depending on the amount of text, I need to use a pattern for the background of each cell. But I am having problems with these black lines and it's driving me mad! I have made sure the tableview is not op...

How to refresh UITableView data?

I have a UITableView with two sections, which are both empty when my application launches. My app fetches the data from a URL, then puts the data into arrays (one per section) which should be used to supply the UITableView data for each cell. Calling [tableView reloadData] doesn't seem to refresh any of the data, or call any of the dele...