Adding GMSPanoramaView in subview or resizing it

非 Y 不嫁゛ 提交于 2020-01-15 12:16:07

问题


I am using google panorama street view in ios, But i am not able to put GMSPanoramaView in subview , it occupies whole screen .Please help me regarding this.Or is there any way that we can put it view with desired size so that it should not occupy whole screen.

Right now I am using following code : and I am getting black screen while using this code.

#import <UIKit/UIKit.h>
#import <GoogleMaps/GoogleMaps.h>

@interface NextViewController : UIViewController{

GMSPanoramaView *panoView_;


}


@property (weak, nonatomic) IBOutlet UIView *sub_View;

@end

-(void)loadView{


panoView_ = [[GMSPanoramaView alloc] initWithFrame:CGRectZero];
self.sub_View = panoView_;

[panoView_ moveNearCoordinate:CLLocationCoordinate2DMake(-33.732, 150.312)];

}

来源:https://stackoverflow.com/questions/24818577/adding-gmspanoramaview-in-subview-or-resizing-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!