textlabel

iPhone UIButton TitleLabel text?

I created a grid of buttons. The following code creates the buttons and displays them, but there is no text on the button. Is there a setting I am missing (Obj-C replies are fine, I'm bi-lingual) RectangleF frame = new RectangleF (X + 3, Y + 3, cellWidth - 2, cellHeight - 2); UIButton button = new UIButton (frame); button.TitleLabel.Tex...

Why does my UIButton.titleLabel.text disappear when I place an image in the button?

I've had this problem before but was able to work around it until now, Basically I'm creating a custom UIbutton setting its image as a uiimage and then the button that has had a label until I implimented the below code now loses its label. I need that label because it is set programatically in code that follows. NSString *imageName = [...

is it possible to adjust position x,y titleLabel of UIButton ?

here is my code UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [btn setFrame:CGRectMake(0.0f, 0.0f, 100.0f, 100.0f)]; [btn setTitle:[NSString stringWithFormat:@"Button %d", i+1] forState:UIControlStateNormal]; [btn addTarget:self action:@selector(buttonPressed:) forControlEvents:UIControlEventTouchUpInside]...

How to prevent textLabel to be truncated when using UITableViewCellStyleValue1?

When using UITableViewCell with UITableViewCellStyleValue1 style the textLabel.text is being truncated when detailTextLabel is pretty long. static NSString *CellIdentifier = @"Cell"; cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease]; cell.textLabel.text = @"Publisher"...