Questions tagged [uimodalpresentationstyle]

157 questions
0
votes
1 answer

how to implement popover for 'cocoa touch framework' component?

Question: How does one implement (guess I mean by IOS best practice) a modal popover within a 'cocoa touch framework'? Assumption here being it's a universal app so will support both iPhone and iPad. Could assume storyboard is being used for the…
Greg
  • 34,042
  • 79
  • 253
  • 454
0
votes
0 answers

Presenting ViewController over current context gets stuck

I'm trying to present a viewcontroller modally over current context when I press a button ("Touch Down") and when I release that button ("Touch Up Inside") I want the viewcontroller to be dismissed. This is my code: (buttonPressed is the "Touch…
0
votes
0 answers

ViewController does not receive a DidDismissPopover notification

I have a view controller B which is presented as a popup by another view controller A. View controller B conforms to protocol UIPopoverPresentationControllerDelegate (defined in its header file) and implements this method. -…
physicalattraction
  • 6,485
  • 10
  • 63
  • 122
0
votes
5 answers

UITableView grouped set background colour transparent

This is what my view looks like : And this is how I want it to be (ignoring the text color) As you can see that the view between the headers should be cleared. But that's not happening. This is how I am implementing the modal ViewController : …
Nitish
  • 13,845
  • 28
  • 135
  • 263
0
votes
1 answer

Correctly closing of new ViewController pages

Help me please with my ViewControllers closing. Im open new ViewController ("SettingsPage") with this code: settingClass = storyboard?.instantiateViewControllerWithIdentifier("SettingsPage") as! SettingsClass settingClass.modalPresentationStyle =…
0
votes
0 answers

Modally present view controller after dismissing view controller

This issue only occurs on iPhone 5, regardless of iOS version. I present the secondViewController from the firstViewController it is presented this time. I then dismiss the secondViewController. I attempt to present the secondViewController again…
0
votes
0 answers

Popover arrow after keyboard dismiss

I present popover with UITextField in it. Everything works fine (arrow points to sourceRect). Then I tap textfield and keyboard opens. Popover gets moved and arrow direction is changed. That's fine too. But when I dismiss keyboard, arrow remains at…
jendan
  • 271
  • 4
  • 14
0
votes
1 answer

viewDidAppear and viewDidDisappear not called when modalPresentationStyle=UIModalPresentationCustom

I need to do a custom presentation animation and when i set both these setTransitioningDelegate and modalPresentationStyle=UIModalPresentationCustom The animation is perfect with unless the viewDidAppear and viewDidDisappear is not called in the…
0
votes
1 answer

iOS: Detect dismissViewControllerAnimated while using UIModalPresentationStyle.OverCurrentContext

In my ViewControllerA, I try to show ViewControllerB by calling: let VC2 = ViewControllerB() VC2.modalPresentationStyle = UIModalPresentationStyle.OverCurrentContext presentViewController(VC2, animated: true, completion: nil) So the content of…
ehhhuang
  • 117
  • 1
  • 3
  • 9
0
votes
0 answers

Performance issues when using UIModalPresentationOverFullScreen vs UIModalPresentationFullScreen

I have a very complex, but static, ViewController A that presents ViewController B over it. B completely covers A and is opaque. I noticed that if I present B using UIModalPresentationOverFullScreen my FPS drops to around 30, but if I use…
0
votes
1 answer

Cannot Get Unwind Segue Working with Modal View Controller Presented Over Current Context

This is regarding the latest version Xcode 6 and iOS 8.4. I have a set of three view controllers, which VC2 & VC3 are presented modally: VC1 -> VC2 -> VC3 Each of the segues are presented with a presentation style of .OverCurrentContext. I am using…
Nick Kohrn
  • 5,779
  • 3
  • 29
  • 49
0
votes
1 answer

ScrollsToTop not working when using ModalPresentationStyle OverCurrentContext in iOS8

When presenting a modal view controller that has a UIScrollView or a subclass of UIScrollView like UITableView or UICollectionView and using UIModalPresentationStyleOverCurrentContext the presented controllers scrollview doesn't scroll to the top…
0
votes
1 answer

Determine how a view controller is being presented

I am presenting a view controller modally with its UIModalPresentationStyle set to the adaptive style UIModalPresentationPopover. This style when in a horizontally compact environment (iPhone portrait) will appear over the full screen. When in a…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
0
votes
1 answer

viewDidGetCoveredUpByModalPresentationFormSheet?

I have an app that has different integrations such as Evernote and Dropbox. When the user authenticates them, a UIViewController presents the authentication view as a UIModalPresentationFormSheet. This doesn't trigger viewDidDisappear for my view…
tettoffensive
  • 664
  • 7
  • 24
0
votes
1 answer

Width of UINavigationController view in iOS8 modal popover?

In my iPad app, I present a navigation controller in a modal form sheet, and set the width of a label therein to be the width of that navigation controller (i.e. the full width of the form sheet). In iOS7, this works perfectly. In iOS8, that width…
Luke
  • 9,512
  • 15
  • 82
  • 146