Rubymotionを使用してiOSアプリを構築しています。このアプリでは、マップビューを取得しました。これはうまく表示できますが、完全にズームアウトしたビューではなく、注釈領域に初期ズームレベルを設定したいと思います。これどうやってするの?
これは私のコードです:
map = MKMapView.alloc.initWithFrame(CGRectMake(10, 10, (hash[:width]-20), (hash[:height]-20)))
map.mapType = MKMapTypeStandard
map.delegate = self
map.showsUserLocation = true
map.setCenterCoordinate(location, animated:true)
map.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight