这是一个创建于 3603 天前的主题,其中的信息可能已经有所发展或是发生改变。
var actInd : UIActivityIndicatorView = UIActivityIndicatorView(frame: CGRectMake(0,0, 50, 50)) as UIActivityIndicatorView
actInd.center = self.view.center
创建了一个indicator 通过 self.view.center 可以让它在当期视图中的x,y轴居中,现在要想在y轴上向上移动一定的距离,应该咋写啊。
1 条回复 • 2015-04-17 10:38:49 +08:00
 |
|
1
daiyuechuan 2015-04-17 10:38:49 +08:00
晕掉了,直接CGRectMake(0,-70, 50, 50) 就可以
|