Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 662 Bytes

File metadata and controls

14 lines (11 loc) · 662 Bytes

labelbordered

A label with border for both attributed and non - attributed texts.

Example code for using:

    UIFont *font = [self getFont];
    LabelBordered *textLabel = [[LabelBordered alloc]initWithFrame:CGRectMake(0, 0, 2000, 2000)];
    [textLabel setTitle:str font:font titleColor:[UIColor darkGrayColor]];
    [textLabel setNumberOfLines:0];
    [textLabel setTextAlignment:NSTextAlignmentCenter];
    [textLabel sizeToFit];
    
    [self.view setFrame:CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y, textLabel.frame.size.width, textLabel.frame.size.height)];
    [self.view addSubview:textLabel];