我一直在研究这个。我正在尝试在图像周围环绕一些文本。
|| Some || Lets say
||Image || i want
to place the text
around here.
我知道这个问题已经有人问过,但我找不到任何好的答案。 有任何想法吗? (我不介意文本在 UIWebView 中)
最佳答案
UIBezierPath * imgRect = [UIBezierPath bezierPathWithRect:CGRectMake(0, 0, 100, 100)];
UIImageView *imageView= [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 100, 100)];
imageView.image=[UIImage imageNamed:@"defaultImage"];
[self.textView addSubview:imageView];
self.textView.textContainer.exclusionPaths = @[imgRect];
关于ios - 如何在 UIImageView 周围环绕文字?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8645401/