如何创建应用程序Yahoo!的相同效果? iOS上的天气,当您触摸此地图的预览并切换到全屏
时进行验证答案 0 :(得分:0)
可能是这样的: (当你触摸地图时)
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0f]; //set your value
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
mapView.center =mapView.center; //mapView is your map which subclass of UIView
mapView.bounds.origin.x=0;
mapView.bounds.origin.y=0
mapView.bounds.size.width=320; //set your value
mapView.bounds.size.height=460; //set your value
[mapView becomeFirstResponder];
[UIView commitAnimations];
如果其代码有些不正确,请在评论中写下来。