modalviewcontroller

How create modalVC with navBar and custom size?

ε祈祈猫儿з 提交于 2020-01-03 02:21:11
问题 I need to create custom modalVC with custom size ( ex: CGSize(width: 100, height: 100) and coordinates). ModalVC may be NOT like popover( popover has rounded corners). There will be navigation bar with item "Done" for dismiss this modalVC. VC will create for UIButton pressing in other VC. There is my code(created of other code, only popover present): class ViewController: UIViewController, UIPopoverPresentationControllerDelegate { @IBOutlet var button: UIButton! @IBAction func buttonPressed

Help with Modal View Controller & Login

China☆狼群 提交于 2020-01-03 00:57:33
问题 I need some help with modal view controllers, as I have not used Modal View Controllers before... So this is how my application now is... - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. [_window addSubview:rootController.view]; rootController.selectedIndex =2; NSLog(@"Displaying the APP delegate"); [self.window makeKeyAndVisible]; return YES; } I have a view for Login,

Presenting MFMessageComposeViewController broken in iOS 6

核能气质少年 提交于 2020-01-02 18:15:35
问题 My app presents a MFMessageComposeViewController modally. It was working perfectly fine in iOS 5 (both on the simulator and on the device). After I upgraded my iPhone to 6, it simply doesn’t work anymore. The app freezes for like 10 seconds, then this message appears in the debugger "Remote compose controller timed out (YES)!" And the modal view does not show up. I searched extensively on stackoverflow and on the web, and couldn’t find any solution. As a final resort, I downloaded and ran the

Ionic 3 - I want a modal screen not full size

烈酒焚心 提交于 2020-01-02 05:46:12
问题 I need a modal page with no full size (80% width, <60% height, centered) to select some items, like an alert control. How to implement the CSS for this case? 回答1: Initialize modal with cssClass let modal = this.modalCtrl.create(CustomSelectPage, {data: data}, {cssClass: 'select-modal' }); Then add CSS to the class in app.scss .select-modal { background: rgba(0, 0, 0, 0.5) !important; padding: 20% 10% !important; } Change the numbers according to your design. 来源: https://stackoverflow.com

UIModalPresentationFullScreen not working in iPad landscape mode?

懵懂的女人 提交于 2019-12-31 07:08:42
问题 I have added a ViewvController(B) as subview on ViewController(A). In ViewController A(SuperView) UIModelPresentationFullScreen working fine. But when am calling UIModelPresentationFull in ViewController B(SubView) it modelview showing in Portrait mode and that is also not fully viewed. How to solve this problem. Can any one help me please. I have tried 2 days. This is what I tried in both the superview and subview... picFBCapture *fbCapt = [[picFBCapture alloc] init]; //[self

UIModalPresentationFullScreen not working in iPad landscape mode?

夙愿已清 提交于 2019-12-31 07:08:31
问题 I have added a ViewvController(B) as subview on ViewController(A). In ViewController A(SuperView) UIModelPresentationFullScreen working fine. But when am calling UIModelPresentationFull in ViewController B(SubView) it modelview showing in Portrait mode and that is also not fully viewed. How to solve this problem. Can any one help me please. I have tried 2 days. This is what I tried in both the superview and subview... picFBCapture *fbCapt = [[picFBCapture alloc] init]; //[self

ModalViewController loading on top of another Modal

六眼飞鱼酱① 提交于 2019-12-31 05:12:10
问题 There may be a better way to do this, and please direct me if there is. I'm creating an UIImagePickerController with an overlayView in viewDidAppear for 'choose from library', 'take photo', 'flash' 'camera source', etc. // Set up the camera imagePicker = [[UIImagePickerController alloc] imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; imagePicker.delegate = self; imagePicker.cameraOverlayView = [self cameraOverlayView]; cameraOverlayView.backgroundColor = [UIColor clearColor]

Present another modal view from UIImagePickerController

…衆ロ難τιáo~ 提交于 2019-12-30 06:37:22
问题 I want to add a confirmation view after the user takes a photo or selects a saved photo. The confirmation view will just show the selected image, with a cancel and upload button in a toolbar. My UIImagePickerController is presented modally from one of my view controllers, which is controlled by a navigation controller, which is in turn controlled by a tab bar controller. How do I present my confirmation view modally so that it takes up the full screen (like the image picker view) when the

Best Method to Show a Popup Transparent Window on iPhone?

别说谁变了你拦得住时间么 提交于 2019-12-29 05:34:30
问题 I'm building an iOS 6 iPhone app in Xcode 4.6 and am wondering about the best way to achieve the following type of popup window: Specifically, the iPhone screenshot on the right, where, if a user taps on a face or UIView in the main window, a partially transparent popover appears with more detailed information -- such as a portrait photo and textual data -- but the original view (a photo collection here) remains visible, and the timers/counters continue ticking down in that view. I thought

Moving between XIBs iOS

梦想的初衷 提交于 2019-12-25 17:44:38
问题 I have a view-based application with three xib files, each with its own view controllers. How do I change from one to another? I use this to move from xib 1 to xib 2, but when I use the same code to move from xib 2 to xib 1, i get a EXC_BAD_ACCESS on the [self presentModal....] line. MapView *controller = [[MapView alloc] initWithNibName:@"MapView" bundle:nil]; controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical; [self presentModalViewController:controller animated:YES]; How