如何创建应用程序雅虎相同的效果!iOS上的天气,当您触摸此地图的预览并切换到全屏时会验证
问问题
210 次
1 回答
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];
如果它的代码会有些不正确,请将其写在注释中。
于 2013-08-17T09:34:38.870 回答