dataPdf mimeType:@”file/pdf”fileName:@”rainy.pdf”]; //把当前controller变为邮件controller [self presentModalViewController picker.recipients = [NSArray arrayWithObject:@”13300000000″]; //推到发送试图控制器 [self presentModalViewController
1.AddInfo *control = [[AddInfo alloc] init]; [self presentModalViewController:control animated:YES]
imagePicker.modalTransitionStyle = UIModalTransitionStyleCoverVertical; imagePicker.allowsEditing =YES; [self presentModalViewController imagePicker.modalTransitionStyle = UIModalTransitionStyleCoverVertical; imagePicker.allowsEditing =YES; [self presentModalViewController
@"12345678", @"87654321", nil]; controller.messageComposeDelegate = self; [self presentModalViewController
从一个视图控制器切换到另一个视图控制器的几种方式 模态(modal)画面显示方式 //显示模态画面 [self presentModalViewController: ... animated:
NSString *emailBody = @"eMail 正文"; [mailPicker setMessageBody:emailBody isHTML:YES]; [self presentModalViewController
controller.recipients = [NSArray arrayWithObjects:@"106295598", nil]; controller.messageComposeDelegate = self; [self presentModalViewController
google之后,在stackOverflow上找到几个比較靠谱的答案~ Why Does presentModalViewController:animated: Turn The Background
设置是否可以管理已经存在的图片或者视频 [controller setDelegate:self];// 设置代理 [self.navigationController presentModalViewController setMediaTypes:mediaTypes]; [controller setDelegate:self];// 设置代理 [self.navigationController presentModalViewController
在发送presentModalViewController: animated:消息后,一个新的视图控制器(其实是个ModalViewController)会滑动到屏幕并掌握控制权,直到使用dismissModalViewControllerAnimated •– presentModalViewController:animated:显示模式控制器 •– dismissModalViewControllerAnimated:隐藏模式控制器 • – setToolbarItems
11 IOS使用模态框弹出子视图后,子视图大小设置 IOS SDK内建支持模态窗口式弹出方式(利用presentModalViewController方法),原理是将子视图包含在一个模态视图中,但是不足之处在于此模态视图大小是固定的 要解决此问题,在执行完presentModalViewController方法之后,再次手动设置模态窗口大小:subVC.view.superView.frame 12 UIImageView加圆角
completion PickImageViewController *ickImageViewController = [[PickImageViewController alloc] init]; [self presentModalViewController
ABNewPersonViewController *picker = [[ABNewPersonViewController alloc] init]; picker.newPersonViewDelegate = self; [self presentModalViewController
bundle:nil] autorelease];bigImageView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;[self presentModalViewController