创建uilabel
self.lbl=[[uilabel alloc] initwithframe:cgrectmake(135, 290,200,35)];
self.lbl.backgroundcolor=[uicolor clearcolor];
nsstring *str=[nsstring stringwithformat:@%.f,[self.slider value]];
[self.lbl setfont:[uifont fontwithname:@arial-boldmt size:16]];
self.lbl.text=str;
[self.view addsubview:self.lbl];
点击uibutton时修改uilabel文本尺寸
-(ibaction)buttonpressed:(id)sender
{
[self.lbl setfont:[uifont fontwithname:@arial-boldmt size:25]];
}
中国足彩网信息请查看IT技术专栏
2025国考·省考课程试听报名