Tag: uitableview

UITableView inside UIScrollView – Table Cell is not selectable

Like said in the title, I have a problem with an UITableView which is in my app a subview of an UIScrollView. In my UIScrollview I have several images, labels, etc. and at the bottom my UITableView is set. I can fill the table view with values etc., but when I try to select a […]

Search view shown always top on tableview

I took a UITableViewController and trying to add UISearchDisplayController in it. I read many code form the internet but don’t know what is wrong with me. my problem is why UISearchDisplayController not to stick always on top of UITableView. Here is my Code SearchView_controller.h @interface SearchView_controller : UITableViewController<UISearchBarDelegate,UISearchDisplayDelegate> @end SearchView_controller.m @interface SearchView_controller () { UISearchDisplayController […]

Add objects to an Array from another View Controller

I have a HomeViewController which has a tableView populated with the array tableViewArray (originally empty). When I tap on a barButton, I segue modally to another View Controller called OutsideViewController which has another tableView populated by a different array. What I would like to do is the following: When I tap on a row in […]

Add a UITableView to an existing ViewController

I’m trying to add a UITableView to an existing UIViewController programmatically. My run.h file has this: @interface runTests : UIViewController <UINavigationControllerDelegate,UITextFieldDelegate,UIAlertViewDelegate,UITableViewDelegate,UITableViewDataSource> {NSTimer *Timer;} @property (strong, nonatomic) UITableView *tableView; My app runs through a speed test and at the end of the test I’m trying to add a TableView to the View. At the moment I […]

Display waiting screen when user selects UITable row

When the user selects a row in my table, I need to load a bunch of data with CoreData. This takes several seconds (at least when running on the simulator – haven’t tested on a device yet, but I imagine it will still be pretty long). I want to display a loading popover screen (I’m […]

custom UITableViewCell with image for highlighting

I have a custom UITableViewCell (instantiated from XIB) with an image as background. Now I want another image to be the background when the cell is selected (similar to the blue flashing for standard cells). I already tried setting it using setSelectedBackgroundView in (void)setSelected:(BOOL)selected animated:(BOOL)animated or even in didSelectRowAtIndexPath but the background for highlighting wont […]

How to add uiview in uitableviewcell

Hope all of you’ll be fine. I have a little issue in my application. I have a tableview with custom-cell. In my custom-cell class i made a uiview UIView* cellView = [[UIView alloc] initWithFrame:self.contentView.frame]; cellView.backgroundColor = [UIColor grayColor]; [self.contentView addSubview:cellView];

Labels in custom TableView cells disappearing after scrolling

I have dynamically tableView with custom cell. CustomCell .h file looks like this: @property (strong, nonatomic) IBOutlet UILabel *uslugaName; //I set retain doesn’t work too @property (strong, nonatomic) IBOutlet UILabel *howMuchPayLbl; My CellForRowAtIndexPathMethod: -(UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString * cellIdentifier = @”Cell”; myCustomCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier]; /* if (!cell) cell […]

UITableView cell goes blank when scrolling

I have setup a single section, single cell custom cell in a UITableViewController to display a view that was longer than the screen. However when testing I notice the cell will disappear (go blank) when scrolling down before it leaves the view area. It’s nothing fancy, but I don’t understand why it would would disappear […]

Difficulty Accessing UITableViewCell Created in Interface Builder .xib File

In my UITableView, for the last row of the last section of the table, I load a special UITableViewCell that is different from all the others on the table. I created the cell in my .xib file and gave it the reuse identifier “endCell.” I would think that I could just do the following to […]