¥µ¥¤¥é¥¹¤ÎËÜê
2010-10-05 iPhone¥×¥í¥°¥é¥ß¥ó¥°Tips
Çطʤ¬Æ©¤±¤¿¥â¡¼¥À¥ë¥Ó¥å¡¼¤òɽ¼¨¤¹¤ë
Á´²èÌ̤òʤ¤¦¥Ó¥å¡¼¤ÏUIViewController¤ÎpresentModalViewController:animated:¤Ç´Êñ¤Ë¤Ç¤¤Þ¤¹¤¬¡¢¤³¤ì¤À¤È¥â¡¼¥À¥ë¥Ó¥å¡¼¤ÎÇطʤϴ°Á´¤Ë±£¤ì¤Æ¤·¤Þ¤¤¤Þ¤¹¡£²èÌ̤ÎÂ礤µ¤¬Á´²èÌ̤Ǥʤ¤¾ì¹ç¤ÏÇطʤò¸«¤¨¤ë¤è¤¦¤Ë¤·¤¿Êý¤¬¼«Á³¤Ç¤¹¤¬¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ²èÌ̤ΰìÈÖÁ°¤Ëɽ¼¨¤¹¤ë¤è¤¦¤Ë¤¹¤ì¤Ð¥â¡¼¥À¥ë¤Î¤è¤¦¤Ê¸ú²Ì¤ò¼Â¸½¤Ç¤¤ë¤è¤¦¤Ç¤¹¡£- InterfaceBuilder¤Çɽ¼¨¤·¤¿¤¤¥Ó¥å¡¼¤òºîÀ®¡£background¤ÏclearColor¤ËÀßÄꤹ¤ë¡£
- °Ê²¼¤òViewController¤Î¼ÂÁõ¤ËÄɲá£(TestAppDelegate¤ò¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¼ÂºÝ¤Î¥Ç¥ê¥²¡¼¥È̾¤ËÃÖ¤´¹¤¨¤ë¡Ë
// Use this to show the modal view (pops-up from the bottom) - (void) showModal:(UIView*) modalView { UIWindow* mainWindow = (((TestAppDelegate*) [UIApplication sharedApplication].delegate).window); CGPoint middleCenter = modalView.center; CGSize offSize = [UIScreen mainScreen].bounds.size; CGPoint offScreenCenter = CGPointMake(offSize.width / 2.0, offSize.height * 1.5); modalView.center = offScreenCenter; // we start off-screen [mainWindow addSubview:modalView]; // Show it with a transition effect [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.7]; // animation duration in seconds modalView.center = middleCenter; [UIView commitAnimations]; } - (void) hideModal:(UIView*) modalView { CGSize offSize = [UIScreen mainScreen].bounds.size; CGPoint offScreenCenter = CGPointMake(offSize.width / 2.0, offSize.height * 1.5); [UIView beginAnimations:nil context:modalView]; [UIView setAnimationDuration:0.7]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@selector(hideModalEnded:finished:context:)]; modalView.center = offScreenCenter; [UIView commitAnimations]; } - (void) hideModalEnded:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context { UIView* modalView = (UIView *)context; [modalView removeFromSuperview]; }
- ¾åµ¤ò¸Æ¤Ó½Ð¤¹¡£¡ÊTestViewController¤ò¼ÂºÝ¤Î̾Á°¤ËÃÖ¤´¹¤¨¤ë¡Ë
// ¥Ó¥å¡¼¤ò¥â¡¼¥À¥ëɽ¼¨¤¹¤ë testViewController = [[TestViewController alloc] initWithNibName:@"TestViewController" bundle:nil]; testViewController.delegate = self; [self showModal:testViewController.view];
- 156 https://www.google.co.jp/
- 52 http://cyrus.co.jp/tdiary?date=201010
- 17 http://www.google.co.jp/url?sa=t&rct=j&q=objective...
- 14 http://www.cyrus.co.jp/tdiary?date=201010
- 12 http://www.cyrus.co.jp/tdiary?date=20101001
- 9 http://www.cyrus.co.jp/?date=20101005
- 7 http://www.bing.com/search?q=¥â¡¼¥À¥ë¥Ó¥å¡¼ ÇØ·Ê Æ...
- 7 http://b.hatena.ne.jp/fjmoto/modalview/
- 6 http://www.google.co.jp/url?sa=t&source=web&cd=1&v...
- 6 http://www.cyrus.co.jp/tdiary?date=20101031
- 6 http://www.cyrus.co.jp/
- 6 http://www.a-ino.jp/area/world/
- 5 https://www.google.com/
- 5 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 5 http://www.google.co.jp/url?sa=t&rct=j&q=¥µ¥¤¥é¥¹¤...
- 4 http://www.google.com/url?sa=t&rct=j&q=presentModa...
- 4 http://www.google.co.jp/url?sa=t&source=web&cd=4&s...
- 4 http://www.google.co.jp/url?sa=t&rct=j&q=presentmo...
- 4 http://www.google.co.jp/url?sa=t&rct=j&q=presentmo...
- 4 http://www.google.co.jp/url?sa=t&rct=j&q=ios¡¡Æ©¤±...
- 4 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 4 google¸¡º÷(presentModalViewController ÇØ·Ê)
- 3 http://www.google.co.jp/url?sa=t&source=web&cd=9&v...
- 3 http://www.google.co.jp/url?sa=t&source=web&cd=4&v...
- 3 http://www.google.co.jp/url?sa=t&source=web&cd=1&v...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=xcode ¥â¡...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=presentMo...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=objective...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=modal vie...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=ios modal...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=¥â¡¼¥À¥ë¥...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=¥â¡¼¥À¥ë¥...
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=¥â¡¼¥À¥ë¥...
- 3 http://www.google.co.jp/url?sa=f&rct=j&url=http://...
- 3 google¸¡º÷(modalview ÇØ·Ê)
- 3 http://search.yahoo.co.jp/search?p=Objective-C mod...
- 3 http://b.hatena.ne.jp/entry/www.cyrus.co.jp/tdiary...
- 2 https://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&...
- 2 http://www.google.fr/imgres?biw=1920&bih=921&tbs=i...
- 2 http://www.google.com/url?sa=t&source=web&cd=1&ved...
- 2 http://www.google.com/url?sa=t&rct=j&q=presentmoda...
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=4&s...
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=3&v...
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=3&v...
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=3&s...
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=12&...
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=11&...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=xcode mod...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=xcode ¥â¡...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=xcode ¥â¡...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=xcode ¥â¡...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=uiview co...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=presentmo...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=presentmo...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=presentmo...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=presentmo...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=presentmo...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=presentmo...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=presentmo...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=presentmo...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=presentmo...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=presentmo...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=presentMo...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=objective...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=modalview...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=modalview...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=modalview...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=iphone mo...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=iphone ÇØ...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=ios¡¡¥â¡¼...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=(void) sh...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=¥â¡¼¥À¥ë ...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=¥â¡¼¥À¥ë¥...
- 2 google¸¡º÷(modal view ios ÇØ·Ê)
- 2 google¸¡º÷(iOS presentModalViewController ¥µ¥¤¥º)
- 2 google¸¡º÷(modalview ÇØ·Ê)
- 2 google¸¡º÷(ios UIView ¥â¡¼¥À¥ë)
- 2 google¸¡º÷(f)
- 2 http://www.bing.com/search?q=UIViewController¡¡¥â¡...
- 2 http://tech.log2.me/1330330906.html
- 2 http://search.yahoo.co.jp/search?p=xcode ¥â¡¼¥À¥ë¥...
- 2 http://b.hatena.ne.jp/fjmoto/20110326
- 1 https://www.google.co.jp/url?sa=t&rct=j&q=xcode Æ©...
- 1 https://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&...
- 1 https://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&...
- 1 https://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&...
- 1 https://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&...
- 1 https://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&...
- 1 https://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&...
- 1 https://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&...