2016-07-29 6 views
0

나는 UIMapView이며 배너 광고를위한 작은 영역이 있습니다. 광고를 삭제하면 UIMapView 픽셀이 50 픽셀 늘어납니다.개체를 늘리는 방법은 무엇입니까?

다음 줄을 시도했지만 CGFloat를 float 값으로 변환 할 수 없습니다.

mapView.frame = CGRectMake(mapView.origin.x, mapView.origin.y, mapView.frame.width, (Float(mapView.frame.height)+50)) 

enter image description here enter image description here

답변

1

실행이 코드 그것은 당신을 위해 작동합니다

self.map.frame = CGRect(x: map.frame.origin.x, y: map.frame.origin.y, width: map.frame.width, height: map.frame.height + 50) 
관련 문제