Swift 4以编程方式定位元素

时间:2018-07-03 10:43:40

标签: swift popup

我在将灰色弹出窗口放置在屏幕顶部时遇到问题。 它的x和y = 0.0 enter image description here

override func viewDidLoad() {
    let dialogheigth:CGFloat = self.view.frame.height;
    let dialogwidth:CGFloat = self.view.frame.width;
    self.preferredContentSize = CGSizeMake(dialogwidth,dialogheigth);
}

1 个答案:

答案 0 :(得分:0)

伙计们我使用https://github.com/daisuke310vvv/PopupController库作为PopUp 我的解决方案是将右键 ViewController发送到PopUp

x = c("201801 1  78", "201801 2  67", "201801 1  13")

dat=read.table(text="col_name col_start col_end  
           year      1         4  
           week      5         6  
           gender    8         8  
           age       11        13 ",h=T)