1. 程式人生 > >iOS 獲取檢視中心點

iOS 獲取檢視中心點

 imageView.bounds = CGRectMake(0, 0, size.height, size.width);
 imageView.center = CGPointMake(CGRectGetWidth(backgroundView.frame)/2, CGRectGetHeight(backgroundView.frame)/2);