提交 91b46cb3 编写于 作者: lizhongyi_'s avatar lizhongyi_

调整 uts-advance

上级 3ac3992c
import { UIImageView , UIImage , UIScreen } from 'UIKit'; import { UIImageView , UIImage , UIScreen } from 'UIKit';
import { DispatchQueue } from 'Dispatch'; import { DispatchQueue } from 'Dispatch';
import { CGFloat } from 'CoreFoundation';
export function addViewToDecorView() { } export function addViewToDecorView() { }
export function removeViewToDecorView() { } export function removeViewToDecorView() { }
export function initAppLifecycle() { } export function initAppLifecycle() { }
...@@ -83,7 +84,7 @@ export function getResourcePath(path: string) { ...@@ -83,7 +84,7 @@ export function getResourcePath(path: string) {
// 添加imageView并设置frame // 添加imageView并设置frame
vc.view.addSubview(imageView) vc.view.addSubview(imageView)
let imageSize = 80.0 let imageSize: CGFloat = 80.0
let midx = (UIScreen.main.bounds.size.width - imageSize) / 2 let midx = (UIScreen.main.bounds.size.width - imageSize) / 2
let midy = (UIScreen.main.bounds.size.height - imageSize) / 2 let midy = (UIScreen.main.bounds.size.height - imageSize) / 2
imageView.frame = CGRect(x = midx, y = midy, width = imageSize, height = imageSize) imageView.frame = CGRect(x = midx, y = midy, width = imageSize, height = imageSize)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册