uitableview

Clip UITableView Cell's Separator

I've been trying to build a view that looks similar to the "stocks" application (surprise). What I would like is to have the scroller bar outside of my rounded table view, shown in the image link below, but clip the cell separators. You can see how they overlap the scroller bar, which is annoying. I can't figure out how Apple put the ...

UITableViewCells appear behind backgroundView

I am having a problem setting the background of UITableView to a UIImageView (see below for why I am doing this), once the view is set, it works fine, and scrolls with the UITableView, but it hides the elements of the Table View. I need to have a UIImageView as the background for a UITableView. I know this has been answered before, but ...

Why Can't I import a UITableViewCell subclass ? That's weird....

It's like this, I created a UITableViewCell subclass called NewsItemCell, then I wanna use it in my FirstViewController.m, then I tried to import it, but the compiler keeps telling me this Below is my code, it is driving me mad, thank you if you can help. #import "NewsItemCell.h" #import "FirstViewController.h" @implementation Firs...

Problem with Scrolling UITableView

Hello, I have a navigation-based application that has a scrolling UITableView filled with the contents of a directory. Somehow, when I try to scroll a new cell into view, the application crashes. I have determined that it goes down to these lines of code in - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtI...

Trouble refreshing UITableView

I'm trying to develop a basic GPA Calculator. I have an AllCourses class that holds Course objects. I have an AllCourses object in my CalcAppDelegate. In my ThirdViewController I can successfully update the number of Courses in my AllCourses object. However, the problem I'm having is that when I switch to the RootViewController the UIT...

UITableView manual scrolling to the last row

I have a table view controller which doesn't let me manually scroll to the last row. It automatically scrolls slightly up so I could never select the last 2-3 rows. Anyone experienced this problem? Should I set a minimum height for the table view to solve this? If so how? ...

UITableView subview to uitableviewcell

i am trying to add a button to the tableview and no matter what frame i specify the button is not visible. This is a custom UITableViewCell and I am adding the button in the code rather than in the xib file is so that I can click on the button and perform an action which is not didSelectRowAtIndexPath: I have the following code in cellF...

Auto-refresh UITableView Help

I am trying to refresh a UITableView with new cells every 30 seconds. My array contains 30 elements, and for every new item I add to my array, I want to remove the last cell in my table. How can I go about doing this? ...

How to provide an custom delete button in the swipe-to-delete gesture of UITableView?

I've implemented that default swipe-to-delete gesture in UITableView, and now I feel that this default button actually doesn't look good in the context. Also, it seems to not be localized. In french it still shows "delete" as text. How can I provide a custom button here? This is how I implemented that guy: - (void)tableView:(UITableVie...

Problems with UITableView when loading the view into the main window

I've created a sub class of UITableViewController named LoginViewController with the XIB file using XCode. Then I opened the XIB file with IB and set the table's style to grouped. Finally I wrote the following code: - (void)applicationDidFinishLaunching:(UIApplication *)application { LoginViewController *loginViewController = [...

How to troubleshoot deallocation of object in uitableview?

I have a table view with tall cells. About 300 in height. The cells are custom and have an associated nib. In cellForRowAtIndexPath, I access an object in an array using indexPath.row. The object has properties, which I assign to labels on the custom cell. This works fine for the first two cells. Once I scroll enough for the third ...

managing exclusive list in UITableView

Hi. I have a simple UITableView. and i want to add a checkmark whenever i select a row. I have only one section in my table. could somebody plz help me with this. SampleTable.h @interface SampleTable : UITableView <UITableViewDelegate , UITableViewDataSource> { NSMutableArray *itemArray; NSString *itemValue; } @property (no...

Must I call super when I implement -scrollViewDidScroll: of UIScrollViewDelegate in an UITableView?

I made a custom UITableView subclass and implemented this: - (void)scrollViewDidScroll:(UIScrollView *)scrollView { // scrolled... } Now, what I think is that UITableView may also love to get this message for some obvious reasons. However, when I don't forward that to super, for some reason, everything still works fine. Must I for...

How to get rect size of UITableViewCell?

How can I get the rect size of a UITableViewCell? I am trying to display a pop hover every time the user clicks on a cell, and would like the pop hover to appear centered on every cell: [replyPopover presentPopoverFromRect:CGRectMake(77, 25, 408, 68) inView:self.view permittedArrowDirections...

How to get total height of a UITableViewCell?

I have subclassed a UITableViewCell and within this class I want to get it's height. How can I achieve this? I have tried: self.frame.size.height but not sure if it is giving me the correct height value. ...

UITableViewIndex Grows to Incorrect Bounds Unexpectedly

I have a standard UITableView + UISearchDisplayController + UITableViewIndex setup. Everything works like a champ. Except, under very specific conditions, the index grows too long to display on the screen. Specifically, after ending a search and re-displaying the unfiltered, indexed table, the index sometimes grows too long. More speci...

How can I retain the data stored in plist from UITextField when application is restarted ?

I am using the plist to store the data entered in the UITextFields. But, when I restart my application all the data entered previously was deleted. How can I retain the data in the Plist. I have a UITableView and when a cell is touched a view appears with two UITextFields. nameField and descriptionField. I stored the data in this way. M...

How to provide an own contentView for using -drawRect?

I want to use -drawRect: in an UITableViewCell subclass but it is covered by contentView. So the best option seems to be that I make a UIView subclass with my -drawRect: code and use that as contentView. But how could I feed my UITableViewCell subclass with that contentView? UITableViewCell creates that on its own when the contentView p...

How to delete table rows programmatically?

I have a table which I am manipulating with a tableViewController (no nib, and the controller is creating the table behind the scenes) I'm trying to delete a row from the table based on its row number; I can delete it from the array I use to create the cell in cellForRowAtIndexPath, but I get a strange error if I try to do the following,...

UITableView background customization strange behavior

Hi, There is a couple of hours that I'm trying to set a tableView background image. My controller is a subclass of UITableViewController, and I simply wrote this lines of code in ViewDidLoad method. UIImage *image = [UIImage imageNamed:@"home-portrait-iphone.png"]; UIImageView *imageView = [[UIImageView alloc] initWithImage:image]; sel...