2013-07-18 35 views
0

我使用的是zooz framework,它在potrait中完美地工作,但是當我旋轉到風景時,它的框架以奇怪的方式發生了變化。我可以設置zooz視圖框架嗎? ?如何在iphone中設置zooz框架的方向sdk

zooz = [ZooZ sharedInstance]; 
      
[zooz preInitialize:@"e6178b33-fac9-4a41-b296-162a28e291f8" isSandboxEnv:IS_SANDBOX]; 

// NSLog(@"HIIII"); 
    
//ZooZ * zooz = [ZooZ sharedInstance]; 
    
zooz.sandbox = IS_SANDBOX; 
    
zooz.tintColor = [UIColor colorWithRed:1 green:0.8 blue:0 alpha:1]; 
    
zooz.barButtonTintColor = [UIColor darkGrayColor]; 

請幫忙!!

回答

0

Zooz對於iPhone目前不支持風景,並將始終在肖像。 iPad確實支持所有的方向。

爲了能在景觀的iPhone應用程序zooz,你應該從縱向顯示zooz只能查看控制器

如果只有景觀應用 - 你應該能夠在你的目標的所有方向性模式,並迫使所有的景觀您的視圖控制器在「允許的方向」方法上。

對於視圖控制器,顯示ZooZ UI,你應該設置爲肖像 這樣您的應用停留在景觀和zooz UI是縱向

-1
- (NSUInteger) supportedInterfaceOrientations{ 
    return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight; 
} 

- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
    if([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone) 
     return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); 
    return YES; 
} 
+0

我們設置總是景觀,它始終處於良好的方式設置 – Jeet

+0

SRY它設置以景觀..因爲它完美的肖像。 – Jeet

+0

您需要回答或想要辯論? – Jeet