ios storyboard 怎么webview自适应高度

2025-05-09 23:34:54
推荐回答(1个)
回答1:

/** 举例:随内容大小自适应*/ //UILabel UILabel *label = [UILabel new]; label.text = @"这是一段文本"; label.backgroundColor = [UIColor redColor]; [label sizeToFit]; label.center = CGPointMake(self.view.center.x, 40); [self.view a...