UILabel *label=[[UILabel alloc]init];
//label的大小
label.frame=CGRectMake(50,50,100,100);
//label的文字内容
label.text=@"第11期";
//label字体颜色
label.textColor= [UIColor redColor];
//label内部字体的位置(居中)
label.textAlignment = NSTextAlignmentCenter;
//label字体的大小 格式
label.font=[UIFont systemFontOfSize:13];
//label 的外框及颜色
label.layer.borderColor = [[UIColor grayColor]CGColor];
label.layer.borderWidth = 0.5f;
label.layer.masksToBounds = YES;
[self.view addSubview:label];