UILabel

    UILabel *label = [[UILabel alloc] init];
    label.text = @"nininihaonininihaonininihaonininihaonininihaonininihao";
    label.frame = CGRectMake(100, 100, 160, 80);
    label.backgroundColor = [UIColor whiteColor];
    label.font = [UIFont systemFontOfSize:18];
    label.textColor = [UIColor blackColor];
    label.shadowColor = [UIColor grayColor];
    label.shadowOffset = CGSizeMake(10, 10);
    
    label.textAlignment = NSTextAlignmentLeft;
    label.numberOfLines = 0;
    
    
    [self.view addSubview:label];

 

posted @ 2018-02-19 18:18  haiwei.sun  阅读(76)  评论(0编辑  收藏  举报
返回顶部