uistoryboardsegue

performing programmatic segue after unwind

♀尐吖头ヾ 提交于 2019-12-25 02:28:37
问题 I have two View Controllers, V1 and V2. V1 presents V2 with a modal segue in storyboard. I then have an unwind segue that dismisses V2 to go to V1. The Done action belowed is then called. It prints out the correct NSLog's, however the [self performSegueWithIdentifier:@"viewmessagessegue" sender:self] does not get initiated. I use that same line of code when a button in V1 is pressed, and it works correctly in that scenario. I'm confused as to why it's not being called... - (IBAction)done:

Passing an animating UIImageView between viewControllers in prepareForSegue:?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 21:20:33
问题 Based on some earlier questions (ex: ios5 how to pass prepareForSegue: a UIImageView) I was wondering how smooth this technique is, say when doing a modal segue with animated = NO. I can toss together a test but I imagine someone has already scoped out the performance and practical pitfalls of using this as a transition technique. I would be interested in hearing any details - for example, does the UIImageView animation restart or does it continue apace? 回答1: If you pass an animating image

Navigation stack will not be updated, segue from GMSAutocompleteResultsViewController

守給你的承諾、 提交于 2019-12-24 20:44:55
问题 I'm having issue with segue to the existing UIViewcontroller via the pushViewController. When I'm tap on the place in resultsViewController, I expect the segue to the MainVC, but i have an error: pushViewController:animated: called on while an existing transition or presentation is occurring; the navigation stack will not be updated. How can I fix this, and have the transition to MainVC?? 回答1: Couple things: Make sure you are not "doubling up" on navigation. If you use a Segue to transition

MKMapView show DetailView - How to make a segue

a 夏天 提交于 2019-12-24 19:25:28
问题 I have a MapView, the annotations comes from a property list. Now I would like to see more data in the detail view. Unfortunately I do not how to program the Segue, so that data can be displayed. I hope you understand what I mean. My english is not so good ... I know that there is missing some in the method prepareforSegue. I am using storyboard. In advance thank you for your help ... regards #import "MapViewNewController.h" #import "MapViewAnnotation.h" #import "SetCardController.h"

iOS - prepareForSegue doesn't wait for the completionBlock to be completed

╄→尐↘猪︶ㄣ 提交于 2019-12-24 18:37:18
问题 What I like: Wait until data download completes then open TableView and show data . What I have: When prepareForSegue is called the TableView opens immediately without waiting for the data download although I have a completionBlock (which may not be implemented correctly I guess). Note: When I go back and open the TableView again I see the data . - (void)fetchEntries { void (^completionBlock) (NSArray *array, NSError *err) = ^(NSArray *array, NSError *err) { if (!err) { self.articlesArray =

Inhibit Storyboard Segue from performing segue action

和自甴很熟 提交于 2019-12-24 13:00:21
问题 Question How do I deny a storyboard segue from taking place? Context: I have a static grouped table view of options on the first view controller that is visible (the main menu if you will). I purposely show the UI early to give the user a chance to interact and perceive a fast load response. Other operations that might be importing data for example, happen on a background operation queue. Most of my UI functions are in fact, ready to go as soon as you see them. One menu item (table row) in

Deinit not called on Show Detail segue

两盒软妹~` 提交于 2019-12-24 11:22:44
问题 I encountered this issue on a larger Swift project, but was able to replicate it with a very basic project. I have the following view controller class: class ViewController: UIViewController { deinit { println("Deinitializing") } override func viewDidAppear(animated: Bool) { NSTimer.scheduledTimerWithTimeInterval(0.1, target: self, selector: "segue", userInfo: nil, repeats: false) } func segue() { self.performSegueWithIdentifier("segue", sender: self) } } My storyboard is configured so there

Trouble segue-ing to a uiviewcontroller from appDelegate upon UILocalNotification - with SWRevealViewController in the mix

纵饮孤独 提交于 2019-12-23 03:03:24
问题 I'm using iBeacons and am trying to respond to the UILocalNotifications they trigger. Everything works fine there and I'm able to display my message content in the notification. I want to be able to launch a specific UIViewController when the user swipes the notification. Currently, according to NSLog output, I'm very close. The tricky bit is that I'm using SWRevealViewController for its cool slider-window menu features and so the segue is crapping out and saying, *** Assertion failure in -

prepareForSegue is not getting called when I click on a button without using performSegueWithIdentifier

一笑奈何 提交于 2019-12-22 01:52:39
问题 Based on the Stanford iOS course I am playing with modal view controllers. In the demo they have a button that would launch a modal view and when it is clicked the function prepareForSegue is called. I mimicked the code and implementation into my project with the only difference is that my demo is on an iPhone storyboard and theirs is on the iPad. I noticed that while my modal view controller is coming up, it does not call prepareForSegue prior to that. I searched the Stanford project to see

iOS 10 Messages Extension - Wrong Layout when using Storyboard Segue

こ雲淡風輕ζ 提交于 2019-12-21 04:20:51
问题 When using Segues in Messages Extension Application the layout gets messed up. Is there any way to solve this issue while still using storrybord segues? Screenshots: (Note: The first and second View / ViewController are identical. The segue-type doesn't matter) Expanded Presentation Style: Compact Presentation Style: Update 1: The top and bottom layout guides reset after a segue compact: top: should be: 0 but is: 20 bottom: should be: 44 but is: 0 expanded: top: should be: 86 but is: 20