iOS 设置导航栏透明后 push 界面 界面下移64高度

来源:互联网 发布:阿里云干嘛的 编辑:程序博客网 时间:2024/05/29 17:46

iOS 设置导航栏透明后 push 界面 界面下移64高度

解决方法:
self.extendedLayoutIncludesOpaqueBars = YES;


设置有导航栏自动添加高度为64 为No

self.automaticallyAdjustsScrollViewInsets = NO;


iOS开发_自定义UISwitch 改变UISwitch大小

// OC版

  • (void)awakeFromNib {

[superawakeFromNib];

self.transform=CGAffineTransformMakeScale(0.5,0.5);

self.layer.anchorPoint=CGPointMake(0,0.5);

}

// Swift

classSwitchButton:UISwitch {

overridefuncawakeFromNib() {

transform=CGAffineTransformMakeScale(0.5,0.5)

layer.anchorPoint=CGPoint(x:0, y:0.3)

}}

这里写图片描述


iOS 通过url获取网络文件、图片的信息(文件大小)

阅读全文
0 0
原创粉丝点击