1. 初始化UILabel UILabel *lable = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 40)]; //添加进视图 [self