segue

Segue Out of Navigation Controller

会有一股神秘感。 提交于 2019-12-10 02:58:35
问题 I am trying to leave the initial view controller, and go into the blank view controller. That is fine, but that would make the blank view controller also part of the navigation controller, which is not what I want. I want to segue out of the view controller. In the view controller I try to segue out of, it pops it self, and when I try the method in the view will appear of the target view controller, self.navigationController?.topViewController returns itself, but self.navigationController?

Use case for push versus modal segues?

房东的猫 提交于 2019-12-10 01:37:07
问题 Let's say, I have a scene (pushed view controller with a navigation bar), which displays some tabular data in a table view. In the navigation bar of that scene I have a + sign, which should open a new scene, where the user can add a new item (row to a core data table). In the table view, each row has an arrow on the right side of each cell, which opens a scene where the user can edit that particular item's details. Should I use a push or modal segue for the +? Should I use a push or modal

Segue animation similar to opening an app in iOS 7: viewcontroller frame is not resizable

孤人 提交于 2019-12-10 00:50:40
问题 I am willing to create a segue animation similar to opening an app in iOS 7. Now I consider this approach: Non-segue implementation, but encountered an issue: if being implemented in custom segue, the code cannot resize viewcontroller's frame, which is principal part of the animation. As I can see, it applies viewcontroller's position, but cannot change it's size. Am I correct, that property viewcontroller.view.frame cannot be animated and has to remain constant and equal to size of the

How to segue from UIButton to a Tab Bar Item?

血红的双手。 提交于 2019-12-09 23:43:30
问题 I have an app with a tab bar, which contains 5 tabs. I decided to have a "Home screen" instead of opening the app directly in the first tab. My home screen will contain a welcome message AND 5 buttons to segue directly to the wanted tab. Example: the 4th button will go to the 4th tab. After clicking one button, the home screen should never be seen again. The navigation mode will by the tab bar. My Home View Controller 5 buttons and a reference to the Tab Bar Controller, to pass the button

Workaround for swift unwinding

落花浮王杯 提交于 2019-12-09 22:03:58
问题 So in response to this question: Xcode 6 Storyboard Unwind Segue with Swift Not Connecting to Exit I'm having the same problem and tried the fix presented, but it still doesn't work. I get the feeling that I'm missing a step for my header file, is it sufficient to simple add a .h file to my project and add the lines mentioned? Or is there more to it? IndexViewController.h: @interface IndexViewController (Workaround) - (IBAction)blaat: (UIStoryboardSegue *)segue; @end IndexViewController.swift

storyboard segue from a tablecell an its Detail Disclosure Button

余生颓废 提交于 2019-12-09 18:33:51
问题 I want to segue from a tablecell to two different viewcontrollers if clicked in the cell or clicked on the cells Detail Disclosure Button. If I ctrl-drag the second segue, the first is deleted. What am I doing wrong? Tnx Mica 回答1: I don't think you can link a specific detail disclosure button w/ a segue. My storyboards are extremely programatic b/c I use alot of custom CGRect etc.. so I tend to use something like this: -(void)tableView:(UITableView *)tableView

ios How To Segue From Single View To Split View Controller

限于喜欢 提交于 2019-12-09 14:53:44
问题 I have two template Views (one is a single view and the other is a Split View Controller) each individually works fine. So I put a button on the Single View and put a Push Segue on the button to go to the Split View Controller. When I press the button I get a crash saying Push cant be used from outside UI Navigation Contoller. Ok so I put the single view template into a UI Navigation Controller and it now says: Split View Controllers cannot be pushed to a Navigation Controller. So ... how do

NSInvalidUnarchiveOperationException with ContainerView

时间秒杀一切 提交于 2019-12-09 14:50:02
问题 Using a ContainerView with an embed seque I'm getting this: * Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named UIStoryboardEmbedSegueTemplate' My searches didn't provide a lot, so: Does this mean "Sorry, only on iOS6" ? 回答1: Yes, this really seems to be a "iOS 6 only"-feature. I did not see it in iOS 5 either... But didn't find it in the Docs so far. 来源: https://stackoverflow.com/questions/12868255

ViewController Appears to Transition Twice

ⅰ亾dé卋堺 提交于 2019-12-09 13:49:07
问题 Problem Summary My mainVC --> second VC transtion appears to run twice. However, what's odd is that the second VC's viewDidLoad only runs once. This is the only transition in my project that has this problem. I have researched this and found load-twice issues but none are a match to my transition twice but load once scenario. Common issues, like someone having added two segues in the storyboard, do not appear in my project: In my first/root view controller (called mainVC) I programmatically

UIViewController half screen “drawer slide” animation

笑着哭i 提交于 2019-12-09 11:40:05
问题 I am trying to have a UIViewController that appears with a "slide" animation from the right. Not like a Push segue, not like the Facebook app. I want the new ViewController to slide ON TOP of the current one (not push it away), but only cover PART of the screen, leaving the other part showing the first ViewController. What I have tried: The closest that I have gotten is by creating a custom segue with the following: - (void)perform { __block UIViewController *src = (UIViewController *) self