Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 UIImageVeiw。它的高度必须通过滚动视图内容大小高度动态变化。当我调整大小时,它正在改变图像质量。如何复制图像直到它与滚动视图高度匹配?请帮我。提前致谢。
为此,您必须使用图案图像:
UIColor *patternColor = [UIColor colorWithPatternImage:@"<your pattern image name>"]; <your view>.backgroundColor = patternColor;