Saturday, May 12, 2012

Label for iPhone

    UILabel *timeTaken = [[UILabel alloc]initWithFrame:CGRectMake(230, 50, 70, 20)];
    timeTaken.text = @"Praveen";
    timeTaken.textAlignment = UITextAlignmentLeft;
    timeTaken.textColor = [UIColor blackColor];
    timeTaken.lineBreakMode = UILineBreakModeMiddleTruncation;
    timeTaken.numberOfLines =0;
    timeTaken.tag= 9;
    timeTaken.backgroundColor = [UIColor clearColor];
    [ timeTaken setFont:[UIFont boldSystemFontOfSize:12]];// fontWithName:@"Courier" size:13]];
    [self.view addSubview: timeTaken];
    [ timeTaken release];

No comments:

Post a Comment