原问题来自于CSDN问答频道,更多解决方案见:http://ask.csdn.net/questions/1183目前正在开发iphone应用,需要实现通过点击一个按钮,修改标签中的文本尺寸,不知道这种功能应该怎么实现?应该是在ios5中开发的。谢谢指教~~解决方案:创建UILabelself.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]];
}ios5iphone