您现在的位置是:Instagram刷粉絲, Ins買粉絲自助下單平台, Ins買贊網站可微信支付寶付款 >
02 手機登錄買粉絲怎么轉橫屏(買粉絲買粉絲橫屏怎么解決)
Instagram刷粉絲, Ins買粉絲自助下單平台, Ins買贊網站可微信支付寶付款2024-06-11 00:13:08【】8人已围观
简介菜單上選擇View,讓Landscape為自啟動View。然后是方法的實現:-(void)willAnimateFirstHalfOfRotationToInterfaceOrientation:(U
然后是方法的實現:
-(void)willAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)to ration:(NSTimeInterval)ration
{
if(to == UIInterfaceOrientationPortrait)
{
self.view = self.portrait;
self.view.transform = CGAffineTransformIdentity;
self.view.transform = CGAffineTransformMakeRotation(degressToRadian(0));
self.view.bounds = CGRectMake(0.0, 0.0, 320.0, 460.0);
}
else if (to == UIInterfaceOrientationLandscapeLeft)
{
self.view = self.landscape;
self.view.transform = CGAffineTransformIdentity;
self.view.transform = CGAffineTransformMakeRotation(degressToRadian(-90));
self.view.bounds = CGRectMake(0.0, 0.0, 460.0, 320.0);
}
else if (to == UIInterfaceOrientationPortraitUpsideDown)
{
self.view = self.portrait;
self.view.transform = CGAffineTransformIdentity;
self.view.transform = CGAffineTransformMakeRotation(degressToRadian(180));
self.view.bounds = CGRectMake(0.0, 0.0, 320.0, 460.0);
}
else if (to == UIInterfaceOrientationLandscapeRight)
{
self.view = self.landscape;
self.view.transform = CGAffineTransformIdentity;
self.view.transform = CGAffineTransformMakeRotation(degressToRadian(90));
self.view.bounds = CGRectMake(0.0, 0.0, 460.0, 320.0);
}
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
不要忘了在dealloc中釋放資源哦。
因為在上面的代碼中使用到了Core Graphics框架,因此要把該框架連接到該項目中,具體的方法是:在Resources上面點右鍵Add->Existing Frameworks。然后就是查找路徑了。我第一次就看錯了沒有找到,哎,做事情不下心呀!具體路徑為:/Developer/Platforms /iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/System /Library/Frameworks/CoreGraphics.framework 呵呵,這個路徑是有點長不好找,記住不是在:/Developer/SDKs里面了,我剛開始就是找到呢里面了。呵呵!還有就是導入后會處理一個提示框, 不要Copy,Reference Type要選擇Relative to Current SDK然后add就OK了。
例子中還有一個方法是對View中的按鈕實現隱藏的,這個就比較簡單了!
具體方法為:
-(IBAction)buttonPressed:(id)sender
{
if(sender == portraitFooButton||sender == landscapeFooButton)
{
portraitFooButton.hidden=YES;
landscapeFooButton.hidden=YES;
}
else
{
portraitBarButton.hidden=YES;
landscapeBarButton.hidden=YES;
}
}
呵呵,上圖兩張看看:
剛開始運行時的圖片
旋轉后并且按了Foo按鈕后的圖片
買粉絲買粉絲碼里面的視頻不能橫屏播放
和手機設置旋轉、買粉絲設置旋轉沒有關系,正常的視頻打開后全屏左邊調明亮度,右邊大小聲音,你的肯定沒反應,其實是跟你的視頻鏈接播放器有關
華為手機在買粉絲里面打開視頻,播放全屏不橫屏怎么辦?
您可以使用wifi網絡打開任意買粉絲網頁,買粉絲會自動下載安裝X5內核或提示安裝X5內核,點擊安裝即可。
驗證瀏覽器插件是否安裝成功,下拉視頻播放頁面,該頁面可以正常下拉并且出現如圖藍色框字樣即為正常。
很赞哦!(1549)
相关文章
- 蘋果平板怎么看youtube(ios yutube為什么無法使用一直顯示沒有聯網怎么解決?)
- 01 上海對外經貿大學中外合辦學費多少(讀在職研究生需要多少錢啊?)
- 01 上海對外經貿大學上海高考分數線(2023上海對外經貿大學分數線)
- 01 上海對外經貿大學mba教育中心官網(上海的mba名校有哪些呢)
- 01 上海對外經貿大學中加合作分數線(我女兒今年考大學,文科,想報考上海財經大學,學什么專業好?)
- 蘋果免拔卡tiktok教程(蘋果tiktok不拔卡教程)
- 01 上海對外經貿大學mpacc復試什么(上海對外經貿大學MPACC學費是多少?報考有什么要求?)
- 蘋果下載tiktok國際版鏈接(蘋果手機怎么下載TikTok(抖音國際版))
- 01 上海對外經貿大學中外合作怎么樣(上海對外經貿大學是幾本?學校合作辦學的留學項目怎么樣?據說是留學基金委指定的留學項目,靠譜嗎?)
- 01 上海對外經貿大學中加合作要出國嗎(大家覺得讀留學3+1國際本科的項目好嗎?)
Instagram刷粉絲, Ins買粉絲自助下單平台, Ins買贊網站可微信支付寶付款的名片
职业:程序员,设计师
现居:新疆阿克苏乌什县
工作室:小组
Email:[email protected]