Tag: uitableview

UIView at top of UITableView in UITableViewController without scroll

I added uiView above uiTableViewController, inside of my table I have some data with scroll but I don’t want to have scroll for this uiview above my table does anyone knows what should I do? Thanks in advance!

adding image to a button in other View

In my app i have two view controllers and have table view in both.Both table view have certain button showing certain images .Now i am trying to set a new image to a button in view B through view A using UIPopOverController.for this i created an object of class B and then done like this. […]

Custom UITableViewCell with an optional image

I have a custom UITableView cell that has a UIImageView sized to the width of the cell at the top, and a UILabel underneath it. A UITableViewCell has an imageView property. If the image view’s image is set, then it pushes the cell textLabel to the right, to accomodate the image. I would like to […]

How do I determine the size of the editing control in a UITableViewCell delete style?

I have a UITableView where the height of each row is calculated in heightForRowAtIndexPath The rows also use UITableViewCellEditingStyleDelete to delete rows. The problem is that the calculated height of some rows is smaller than the editing control (red circle on left) displayed in the edit mode which cuts off the top of the editing […]

UItableviewcontroller cell text label content not displayed

I ve successfully parsed json file in my app but when i tried to display all it in table view its not getting displayed .here is my code. NSString *urlstr=[NSString stringWithFormat:@”http://minora.p41techdev.net/portal.php”]; NSURL *url=[NSURL URLWithString:urlstr]; NSData *data =[NSData dataWithContentsOfURL:url]; NSError *error; NSArray *json=(NSMutableArray*) [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; //NSLog(@”%@”,json); NSDictionary *dict =[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@”a title”, @”more data”,nil] […]

Prepareforsegue navigationItem.title one behind

I’m still relative new to object c, so please bear over with me if this is a rookie question. I’m trying to set the title of my navigationcontroller with the corresponding object information. I’m using prepareforsegue for it, but the first time is segue to the new controller, the title is blank. If i try […]

Change UITableviews height to fit its content in xcode?

I need to make UITaableView to fit its content.I m loading array data in UITableView.But when I fixed some static size ,eventhough the items are less it is showing the extra space.So I need to make dynamic height to UITableView but could not achieve it .. autocompleteTableView = [[UITableView alloc] initWithFrame:CGRectMake(10, 140, 200, self.autocompleteTableView.contentSize.height) style:UITableViewStyleGrouped]; […]

dequeueReusableCellWithIdentifier never returns

When I call dequeueReusableCellWithIdentifier it is freezing my code and does never return any cell (or nil) I change the code from my custom class to a UITableViewCell to be sure the problem wasn’t in my class, I also create a brand new empty cell to call with the identifier. I add a log before […]

XCode, table view cellForRowAtIndexPath

I know there is a simple solution to this but I can’t seem to be able to tell :/ cell.textLabel.text = [BooksBorrowed objectAtIndex:0]; I have that in my cellForRowAtIndexPath method, bookName is a string. It crashes and leaves no error in log. I dont know what I am doing wrong. bookName is a string that […]

Custom UITableViewCell sometimes not responding

I am facing a weird problem. I want to display a custom cell without highlighting it. My UITableViewCell in my table has 5 elements in it like UILabel, UIImage etc. The problem is when I tap on the cell sometimes alertview is not displayed. This is the code in my didSelectRowAtIndexPath: UIAlertView *alert = [[UIAlertView […]