获取视图的宽度(快速)

时间:2019-02-07 17:43:12

标签: ios swift uiview

因此您可以按如下方式获取UIScreen的宽度和高度...

public var screenWidth: CGFloat {
    return UIScreen.main.bounds.width
}

public var screenHeight: CGFloat {
    return UIScreen.main.bounds.height
}

但是如何获取UIView的宽度和高度?

1 个答案:

答案 0 :(得分:1)

strSQL = strSQL & " where student.Studentid=" & objApp.CurrentStudentID 
相关问题