ios 15导航栏适配
if (@available(iOS 15.0, *)){ UINavigationBarAppearance *appearance = [UINavigationBarAppearance new]; [appeara …
if (@available(iOS 15.0, *)){ UINavigationBarAppearance *appearance = [UINavigationBarAppearance new]; [appeara …
-(UIImage *)scaleToSize:(UIImage *)img size:(CGSize)size { // 设置成为当前正在使用的context UIGraphicsBeginImag …
一句话: dialog.getWindow().setDimAmount(0f); 下面的内容来自网络 Window window= dialog.getWindow(); //去除系统 …
基本概念 采用 Flex 布局的元素,称为 Flex 容器(flex container),简称"容器"。它的所有子元素自动成为容 …
<div v-if="contacts.length>1" class="detailinfo onlytxt"> <div v-for="(ite …
let obj = JSON.parse(this.taskInfo.contactDetail) let keys = Object.keys(obj) if(keys){ for(let i = 0 ; i<ke …
function requestData(){ let promise = new Promise((resolve,reject)=>{ let a = 3 if(a > 3){ resolve(' …
我们自定义了UITbleViewCell的基类,我们又盖了一层UIView,用于放我们的控件,我们做法如下: UIView *_container = [ …
UILabel *lable = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, ScreenW, 300)] ; [self.view addSubview:lable] ; …
/** * 通过 CAShapeLayer 方式绘制虚线 * * param lineView: 需要绘制成虚线的view * param lineLength: 虚线的宽度 * …
微信扫一扫,分享到朋友圈