亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? transitionviewcontroller.m

?? GLPaint example code from the iphone SDK
?? M
字號:
/*File: TransitionViewController.mAbstract: The view controller for showing transitions with UIView.Version: 1.7Disclaimer: IMPORTANT:  This Apple software is supplied to you by Apple Inc.("Apple") in consideration of your agreement to the following terms, and youruse, installation, modification or redistribution of this Apple softwareconstitutes acceptance of these terms.  If you do not agree with these terms,please do not use, install, modify or redistribute this Apple software.In consideration of your agreement to abide by the following terms, and subjectto these terms, Apple grants you a personal, non-exclusive license, underApple's copyrights in this original Apple software (the "Apple Software"), touse, reproduce, modify and redistribute the Apple Software, with or withoutmodifications, in source and/or binary forms; provided that if you redistributethe Apple Software in its entirety and without modifications, you must retainthis notice and the following text and disclaimers in all such redistributionsof the Apple Software.Neither the name, trademarks, service marks or logos of Apple Inc. may be usedto endorse or promote products derived from the Apple Software without specificprior written permission from Apple.  Except as expressly stated in this notice,no other rights or licenses, express or implied, are granted by Apple herein,including but not limited to any patent rights that may be infringed by yourderivative works or by other works in which the Apple Software may beincorporated.The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NOWARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIEDWARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULARPURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR INCOMBINATION WITH YOUR PRODUCTS.IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL ORCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTEGOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/ORDISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OFCONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IFAPPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Copyright (C) 2008 Apple Inc. All Rights Reserved.*/#import "TransitionViewController.h"#import "Constants.h"@implementation TransitionsViewController#define kImageHeight		200.0#define kImageWidth			250.0#define kTransitionDuration	0.75#define kTopPlacement		80.0	// y coord for the images- (id)init{	self = [super init];	if (self)	{		// this title will appear in the navigation bar		self.title = NSLocalizedString(@"TransitionsTitle", @"");	}	return self;}- (void)dealloc{	[mainView release];	[flipToView release];	[containerView release];		[super dealloc];}// create the alternate view that we flip to.// In this case, it's almost exactly the same except for differnt photos//- (void)createAlternateFlipView{	CGRect imageFrame = CGRectMake(0.0, 0.0, kImageWidth, kImageHeight);	flipToView = [[UIImageView alloc] initWithFrame:imageFrame];	flipToView.image = [UIImage imageNamed:@"scene2.jpg"];}- (void)loadView{	// add the top-most parent view	UIView *contentView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];	contentView.backgroundColor = [UIColor blackColor];	self.view = contentView;	[contentView release];		// create the container view which we will use for transition animation (centered horizontally)	CGRect frame = CGRectMake(round((self.view.bounds.size.width - kImageWidth) / 2.0), kTopPlacement, kImageWidth, kImageHeight);	containerView = [[UIView alloc] initWithFrame:frame];	[self.view addSubview:containerView];		// create the initial image view	frame = CGRectMake(0.0, 0.0, kImageWidth, kImageHeight);	mainView = [[UIImageView alloc] initWithFrame:frame];	mainView.image = [UIImage imageNamed:@"scene1.jpg"];	[containerView addSubview:mainView];		// create the alternate image view (to transition between)	[self createAlternateFlipView];		// create the buttom toolbar to host the two transition buttons,	// we will use flex items on both sides to center them	//	UIToolbar *toolbar = [UIToolbar new];	toolbar.barStyle = UIBarStyleBlackOpaque;		UIBarButtonItem *flexItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace																 target:nil																 action:nil] autorelease];	UIBarButtonItem *flipItem = [[[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"FlipTitle", @"")																  style:UIBarButtonItemStyleBordered																 target:self																 action:@selector(flipAction:)] autorelease];	UIBarButtonItem *curlItem = [[[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"CurlTitle", @"")																  style:UIBarButtonItemStyleBordered																 target:self																 action:@selector(curlAction:)] autorelease];	NSArray *items = [NSArray arrayWithObjects: 					  flexItem,							flipItem,							curlItem,					  flexItem,					  nil];	toolbar.items = items;		// size up the toolbar and set its frame	[toolbar sizeToFit];	CGFloat toolbarHeight = [toolbar frame].size.height;	CGRect mainViewBounds = self.view.bounds;	[toolbar setFrame:CGRectMake(CGRectGetMinX(mainViewBounds),								 CGRectGetMinY(mainViewBounds) + CGRectGetHeight(mainViewBounds) - (toolbarHeight * 2.0),								 CGRectGetWidth(mainViewBounds),								 toolbarHeight)];		[self.view addSubview:toolbar];	[toolbar release];}- (void)curlAction:(id)sender{	[UIView beginAnimations:nil context:NULL];	[UIView setAnimationDuration:kTransitionDuration];		[UIView setAnimationTransition:([mainView superview] ?									UIViewAnimationTransitionCurlUp : UIViewAnimationTransitionCurlDown)						   forView:containerView cache:YES];	if ([flipToView superview])	{		[flipToView removeFromSuperview];		[containerView addSubview:mainView];	}	else	{		[mainView removeFromSuperview];		[containerView addSubview:flipToView];	}		[UIView commitAnimations];}- (void)flipAction:(id)sender{	[UIView beginAnimations:nil context:NULL];	[UIView setAnimationDuration:kTransitionDuration];			[UIView setAnimationTransition:([mainView superview] ?										UIViewAnimationTransitionFlipFromLeft : UIViewAnimationTransitionFlipFromRight)										forView:containerView cache:YES];	if ([flipToView superview])	{		[flipToView removeFromSuperview];		[containerView addSubview:mainView];	}	else	{		[mainView removeFromSuperview];		[containerView addSubview:flipToView];	}		[UIView commitAnimations];}#pragma mark UIViewController delegate methods// called after this controller's view was dismissed, covered or otherwise hidden- (void)viewWillDisappear:(BOOL)animated{		// restore the nav bar and status bar color to default	self.navigationController.navigationBar.barStyle = UIBarStyleDefault;	[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;}// called after this controller's view will appear- (void)viewWillAppear:(BOOL)animated{		// for aesthetic reasons (the background is black), make the nav bar black for this particular page	self.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;		// match the status bar with the nav bar	[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque;}@end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产髙清在线看国产毛片| 国产中文一区二区三区| 国产区在线观看成人精品 | 日韩毛片视频在线看| 26uuu亚洲综合色欧美| 91精品在线一区二区| 欧美视频一区在线观看| 欧美午夜影院一区| 欧美色精品天天在线观看视频| 欧美三级在线播放| 欧美日韩在线综合| 69堂成人精品免费视频| 日韩亚洲欧美在线观看| 欧美精品一区男女天堂| 国产精品午夜免费| 亚洲人成人一区二区在线观看| 亚洲人成精品久久久久久| 怡红院av一区二区三区| 日韩国产在线观看| 国内精品免费**视频| 国产成a人无v码亚洲福利| 91性感美女视频| 51精品视频一区二区三区| 26uuu精品一区二区| 国产欧美一区二区精品久导航| 国产精品盗摄一区二区三区| 亚洲一区二区三区爽爽爽爽爽| 视频在线观看国产精品| 国产高清不卡二三区| 色视频成人在线观看免| 6080国产精品一区二区| 中文欧美字幕免费| 午夜伦理一区二区| 国产成人a级片| 欧美亚洲一区二区三区四区| 欧美视频中文一区二区三区在线观看| 免费观看30秒视频久久| 成人综合在线视频| 欧美巨大另类极品videosbest| 久久久久高清精品| 亚洲一区自拍偷拍| 国产一区二区精品久久91| 91免费精品国自产拍在线不卡| 欧美日韩精品电影| 国产精品色在线观看| 亚洲成av人片一区二区三区| 国产精品综合在线视频| 一本久道久久综合中文字幕| 欧美va亚洲va| 亚洲人成影院在线观看| 精品一区二区三区不卡| 欧美丝袜丝交足nylons图片| 国产欧美一区二区精品性| 日韩不卡一二三区| 三级不卡在线观看| 7878成人国产在线观看| 青青草视频一区| 国产酒店精品激情| 欧美精品免费视频| 一区二区三区自拍| 国产精品一二三区在线| 欧美一级二级三级乱码| 亚洲国产日日夜夜| 91蜜桃视频在线| 国产欧美一区二区三区沐欲| 精品一区在线看| 欧美一级欧美三级| 日韩av不卡在线观看| 在线播放亚洲一区| 午夜精品成人在线视频| 一本一本大道香蕉久在线精品 | 久久精品视频在线免费观看| 日韩精品成人一区二区三区| 欧美日韩精品免费| 亚洲福利视频三区| 精品视频在线看| 亚洲国产日日夜夜| 欧美日韩高清一区二区三区| 亚洲国产另类精品专区| 欧美视频中文一区二区三区在线观看 | 日韩av一区二区三区四区| 在线观看不卡视频| 亚洲国产日韩a在线播放性色| 欧美日韩一区二区三区不卡| 亚洲黄色录像片| 欧美日韩精品欧美日韩精品| 视频一区中文字幕| 精品国产亚洲一区二区三区在线观看| 精品一区二区三区在线视频| xnxx国产精品| 99久久777色| 亚洲大片在线观看| 日韩区在线观看| 国产精品 日产精品 欧美精品| 中文字幕一区免费在线观看| 色综合网色综合| 日韩二区三区在线观看| 日韩欧美国产1| www.日韩av| 日韩电影在线观看一区| 26uuu久久天堂性欧美| 99免费精品在线观看| 丝袜亚洲精品中文字幕一区| 亚洲精品一区二区三区影院| 综合久久久久综合| 久久综合五月天婷婷伊人| av成人动漫在线观看| 婷婷一区二区三区| 久久久久久久久99精品| 色偷偷久久一区二区三区| 奇米综合一区二区三区精品视频| 国产日韩欧美不卡在线| 欧美视频一区二区三区在线观看| 久久国产精品色| 亚洲色图欧美偷拍| 精品国产一区二区三区不卡| 色狠狠色噜噜噜综合网| 韩国女主播成人在线| 亚洲精品免费看| 国产色产综合色产在线视频| 欧美日韩一级黄| 成人sese在线| 九一久久久久久| 亚洲福中文字幕伊人影院| 国产精品欧美久久久久无广告 | 欧美高清dvd| 99re成人精品视频| 久久精品国产999大香线蕉| 亚洲欧美色一区| 国产欧美一区二区精品婷婷| 91精品国产综合久久精品| aaa欧美色吧激情视频| 国产福利一区在线| 免费在线观看日韩欧美| 亚洲国产综合在线| 国产精品成人一区二区三区夜夜夜| 日韩一级完整毛片| 欧美乱妇23p| 在线视频一区二区三| aaa亚洲精品| 成人激情文学综合网| 国产精品1区2区3区在线观看| 免费精品视频在线| 亚洲成年人网站在线观看| 亚洲综合久久久| 日韩美女视频一区二区| 亚洲天堂福利av| 1区2区3区国产精品| 综合色中文字幕| 亚洲视频一二三区| 日韩伦理av电影| 亚洲区小说区图片区qvod| 中文字幕一区二区三| ...xxx性欧美| 亚洲伦理在线免费看| 亚洲九九爱视频| 午夜伊人狠狠久久| 日韩高清欧美激情| 亚洲第一二三四区| 天天做天天摸天天爽国产一区| 亚洲成人激情综合网| 天天综合日日夜夜精品| 欧美a一区二区| 韩国一区二区视频| 国产夫妻精品视频| www.激情成人| 欧美色精品在线视频| 日韩欧美在线一区二区三区| 日韩欧美国产系列| 久久日韩精品一区二区五区| 日本一区二区视频在线| 国产精品嫩草久久久久| 亚洲综合色视频| 麻豆久久久久久| 国产一区二区三区蝌蚪| 91亚洲国产成人精品一区二三| 欧美日精品一区视频| 26uuu国产电影一区二区| 国产精品久久久久久久久动漫| 亚洲午夜精品网| 久久爱www久久做| 99久久精品费精品国产一区二区| 欧美亚洲一区三区| 欧美本精品男人aⅴ天堂| 国产精品人成在线观看免费| 亚洲妇女屁股眼交7| 国产精品1024| 欧美丰满少妇xxxbbb| 中文字幕不卡在线播放| 性做久久久久久免费观看| 国产成人福利片| 欧美日韩成人在线| 国产日产欧产精品推荐色| 亚洲一区二区视频在线| 国产一区二区三区蝌蚪| 欧美日韩精品欧美日韩精品一综合| 久久久久久亚洲综合| 午夜久久久影院| 成人黄色在线视频| 日韩精品一区在线观看|