iPhone Xs Max 14.5预期效果图给UIImageview添加一个气泡框样式的遮罩图,使图片加载后显示为气泡框样式。原代码: //设置蒙版遮罩层通道 UIImageView *imageViewMask = [[UIImageView alloc] initWithImage:image]; imageViewMask.frame = CGRectInset(view.frame, 0.0f, 0.0f); view.layer.mask = imageViewMask.laye
设置默认不使用深色模式info.plist<key>UIUserInterfaceStyle</key> <string>Light</string>
view背景为黑色半透明,右下角挖一个矩形显示底部图层。 _tapView = [[UIView alloc] initWithFrame:self.view.bounds]; _tapView.backgroundColor = [UIColor colorWithWhite:0 alpha:.5]; // 贝塞尔绘制区域 UIBezierPath *path = [UIBezierPath bezierPathWithRect:self.view.bo
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号