必威-必威-欢迎您

必威,必威官网企业自成立以来,以策略先行,经营致胜,管理为本的商,业推广理念,一步一个脚印发展成为同类企业中经营范围最广,在行业内颇具影响力的企业。

创建完也不要怀疑人生,其中包括了这个 支持

2019-09-12 19:42 来源:未知

frame.size.width=MainScreenWidth;

经过初步研究,可以实现.  要注意webview 和 webview的父view 的响应范围都要改,否则webview增加的那部分会没有响应.

CGRect frame = self.frame;

self.center = center;

public var centerX: CGFloat{

{

//showTabbar

CGRect frame0 = self.view.frame;  //self.view 是 webview的父view

self.view.frame = CGRectMake(frame0.origin.x, frame0.origin.y, frame0.size.width, frame0.size.height - 49);

CGRect frame = _webView.frame;

_webView.frame = CGRectMake(frame.origin.x, frame.origin.y, frame.size.width, frame.size.height - 49);

self.tabBarController.tabBar.hidden = NO;

//hideTabbar

CGRect frame0 = self.view.frame;

self.view.frame = CGRectMake(frame0.origin.x, frame0.origin.y, frame0.size.width, frame0.size.height + 49);

CGRect frame = _webView.frame;

_webView.frame = CGRectMake(frame.origin.x, frame.origin.y, frame.size.width, frame.size.height + 49);

self.tabBarController.tabBar.hidden = YES;

{

{

}

}

项目出了新需求. 是我上次改造的webview 上,要求给H5提供 一套交互和功能回调支持.  

CGRect frame = self.frame;

- (void)setHeight:(CGFloat)height

self.frame = frame

[supersetFrame:frame];

其中包括了这个 支持H5回调 显示与隐藏TabBar.

}

frame.origin.y = y;

set{

- setFrame:frame

frame.origin = origin;

- (void)setX:(CGFloat)x

var frame = self.frame

只需要在cell.m里写上这句话就可以完美适配啦~~~

CGRect frame = self.frame;

return self.frame.size;

self.frame = frame

{

- (CGFloat)centerY

}

@property (nonatomic, assign) CGFloat height;

- (void)setWidth:(CGFloat)width

}

}

{

subView?.removeFromSuperview()

{

return self.frame.size.height;

public var right: CGFloat{

return self.frame.origin.x;

- (CGSize)size

self.center = center

{

self.frame = frame;

}

frame.size.height = height;

@implementation UIView (Extension)

var frame = self.frame

}

}

get{

{

//    self.width = size.width;

}

- (CGFloat)centerX

frame.origin.x = x;

set{

{

CGPoint center = self.center;

}

{

self.frame = frame;

}

UIView+THFrame.h

//    self.height = size.height;

public var bottom: CGFloat{

}

- (void)setCenterY:(CGFloat)centerY

}

center.y = centerY;

frame.size.height = height;

set{

{

frame.size.width = width;

public var size: CGSize{

{

}

图片 1

return self.frame.origin.y;

- (CGFloat)y

frame.origin.y = newValue - frame.size.height;

TAG标签:
版权声明:本文由必威发布于必威-编程,转载请注明出处:创建完也不要怀疑人生,其中包括了这个 支持