segue

How do I go from SKScene to UIViewController by code?

允我心安 提交于 2019-11-27 04:34:14
All I want if for when the user touches a skspritenode in the skscene, it will go to a different view like performseguewithidentifier . Thanks for any help. I can post code, but it seems like a generic question so I figured that you wouldn't need any. By the way, I already figured out how to detect the tapping the skspritenode. I have been looking at this for a long time and I am stumped. Please help. You cannot present a viewController from within a SKScene as it is actually only being rendered on a SKView. You need a way to send a message to the SKView's viewController, which in turn will

Push segue in xcode with no animation

ぐ巨炮叔叔 提交于 2019-11-27 04:14:41
问题 I am using normal storyboarding and push segues in xcode, but I want to have segues that just appear the next view, not slide the next view (as in when you use a tab bar and the next view just appears). Is there a nice simple way to have normal push segues just "appear" and not "slide", without needing to add custom segues? Everything is working completely fine, I just want to remove that slide animation between the views. 回答1: I was able to do this by creating a custom segue (based on this

is it possible to segue from a UITableViewCell on a UIView to another view

别说谁变了你拦得住时间么 提交于 2019-11-27 03:34:54
问题 Xcode 4.6.1 iOS 6 using storyboards My problem is this I have a UITableView with dynamic prototype cells on a UIView in a UIViewController (that is itself embedded in a navigation controller) and I want to segue from one specific cell to another view (Before anyone suggests I should just be using a UITableViewController , I do have other things on the UIView, so i'm set up this way for a reason.) Now i'm not sure how to go about creating the segue If I drag from the prototype UITableViewCell

Storyboard, UIViewController and UISplitViewController

泪湿孤枕 提交于 2019-11-27 03:14:55
问题 Trying to make storyboard based application for iPad. In it I need to transition from start screen (UIViewController) to main screen (UISplitViewController) and then to full-screen view (again UIViewController). I saw a number of discussions on the web (at least several - on stackoverflow), stating that UISplitViewController can't be used in Storyboard based application any other way than being RootViewController. Some threads contain workarounds and there's also alternative splitview (https:

Perform Segue from App Delegate swift

余生颓废 提交于 2019-11-27 02:39:31
问题 I need to launch a view controller from the app delegate. In the way you would perform a segue between view controllers. I have an if statement that if true needs to show a view controller, this is in the app delegate. How do I do this from the app delegate? 回答1: c_rath's answer is mostly right, but you don't need to make the view controller a root view controller. You can in fact trigger a segue between the top view on the navigation stack and any other view controller, even from the App

Segues initiated directly from view controllers warning in storyboard xcode

六眼飞鱼酱① 提交于 2019-11-27 02:35:51
问题 Hi I have created button programmatically and I connected it to another view, but I got segue warning that I should use prepareForSegue method for storyboard but I don't know how, there are some sample on Internet but I get an error when I used that sample, would you please help me here is my code Creating Button UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom]; button.backgroundColor=[UIColor colorWithRed: 201.0/255.0 green: 201.0/255.0 blue:201.0/255.0 alpha: 1.0]; button

Keep getting “Unbalanced calls to begin/end appearance transitions for <ViewController>” error

假装没事ソ 提交于 2019-11-27 02:34:31
问题 I have an app that is almost running perfectly. Here is how my app is structured: 6 total View Controllers on the storyboard. The first 3 View Controllers are the most important. The initial View Controller has buttons to "Login" and "Signup". The "Login" button modally presents a Login View Controller and the "Signup" button modally presents a Signup View Controller. The Signup View Controller has 3 fields for username, password, and email and then a "submit" button. The submit button

Calling performSeguewithIdentifier doesn't call shouldperformseguewithIdentifier

╄→гoц情女王★ 提交于 2019-11-27 02:29:37
问题 I have two view controllers. On view controller1 I have the following: a segue that takes me to viewcontroller2 - this segue is named "showme" and is attached to the viewcontroller an IBAction for a UIButton In my code I have the following for the button press action @IBAction func buttonPress(sender: AnyObject) { println("button pressed") performSegueWithIdentifier("showme", sender: self) } I also have the following method: override func shouldPerformSegueWithIdentifier(identifier: String?,

iOS 9 Segue Causes App To Freeze (no crash or error thrown)

夙愿已清 提交于 2019-11-27 01:59:16
I have been working on this app for months now and from as far back as I can remember I have never had an issue with segues. The code is unchanged in terms of calling performSegueWithIdentifier but since my recent update to Xcode 7 and iOS 9 I have not been able to tack this issue. I have tried: Deleting button and creating new button w/ segue link Using a direct segue from button to view, without the use of performSegueWithIdentifier Connecting button to new blank viewController When I press the button, no initial load functions are called on the destination VC (Ex: ViewDidLoad ,

NSInvalidArgumentException - receiver has no segue with identifier

眉间皱痕 提交于 2019-11-27 01:32:23
I have been trying everything for hours, and nothing's worked. I am trying to segue between two view controllers, from one tableViewController to another tableViewController. The segue is hooked up to the top level view, not the tableviewcell. The identifier that was set in Xcode is identical to the one used in the code (copy and pasted). It was working fine last night, but now i can't seem to get it to segue without crashing. here are the methods in which the segue is called - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { self.photoList =