segue

Storyboard, UIViewController and UISplitViewController

…衆ロ難τιáo~ 提交于 2019-11-28 09:50:01
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://github.com/mattgemmell/MGSplitViewController ) to cope with this. But what I can't understand is why

instantiateViewControllerWithIdentifier - Storyboard id set but still not working

巧了我就是萌 提交于 2019-11-28 09:39:05
I have to created a segue programmatically however when I click on the button the view controller does not change to the next, Storyboard ID is set and still not working. Am I missing any other checks in order to make this work? Please see code below: EntryViewController *entryController = [self.storyboard instantiateViewControllerWithIdentifier:@"go"]; [self.navigationController pushViewController:entryController animated:YES]; its driving me mad. Thanks Inside my viewDidLoad I have placed the button which calls goldStarOpen: UIButton *btnTwo = [UIButton buttonWithType:UIButtonTypeCustom];

Perform Segue from App Delegate swift

别等时光非礼了梦想. 提交于 2019-11-28 09:06:38
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? Lyndsey Scott 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 Delegate. For example, to push a storyboard view controller, you could do this: Swift 3.0 and

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

十年热恋 提交于 2019-11-28 09:00:53
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 submits the data to my web server and if everything submits successfully it calls the

Passing data with segue through navigationController

最后都变了- 提交于 2019-11-28 08:54:07
I'm trying to push data from one viewController to another. I've connected a viewController to another ViewController's navigationController and then set the identifier to "showItemSegue" . I get an error in these two lines: var detailController = segue.destinationViewController as ShowItemViewController detailController.currentId = nextId! Image illustration: The code: override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) { nextId = itemArray?.objectAtIndex(indexPath.row).objectForKey("objectId") as? NSString self

iOS7 Storyboard image picker not working :(

佐手、 提交于 2019-11-28 07:32:45
问题 Im trying to set up an imagePicker in a new iOS7 Xcode project using storyboards but can't seem to find any examples online until I found the following code. I've set it up so that when a button is pressed it uses a modal push thing to navigate to the view which has the class of "UIImagePickerController" which apparently calls in the image picker code. However when the app is run it won't load anything up after clicking on allow the application to access your photos any chance of some help

How do you perform a customized segue (modal segue) from a UIButton in storyboard

社会主义新天地 提交于 2019-11-28 06:39:18
I would like to segue a destination scene through a button present in source scene. I also would like to have a control of the transition animation between the viewcontroller (I want to animate the 2 views from right to left). Is it possible to do so through the replace segue? I try both the replace segue and the push segue but the segue is not happening any suggestion how i should proceed there? Thanks! I found out that the replace segue and push segue were misleading because the replace seems to be available for a master detail controller and the push segue for a navigation controller only.

Pop the current view using Segues/Storyboard on iOS 5

送分小仙女□ 提交于 2019-11-28 05:58:38
I am creating an app using iOS 5 SDK. I managed to push views using the Storyboard's Segues, but I cannot find the proper way to pop the current view and go back to the previous one. I am not using any navigationController (the app doesn't have any top or bottom bars). I don't think using modal or push segue the other way would be the solution as it instantiates a new controller. Do I have to use a custom Segue with the opposite animation and deletion of the view at the end ? Or is there a better way ? You could try calling [self dismissViewControllerAnimated:YES completion:nil]; from the

NSGenericException', reason: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController

不羁岁月 提交于 2019-11-28 03:47:37
so I'm making an app with 5 view controllers, the first is embedded in a UINavigationController and the segue between the first 4 view controllers works fine. However introducing a 5th View Controller has broken this, and I'm getting the error Terminating app due to uncaught exception 'NSGenericException', reason: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController.' I havent done anything differently with this 5th view controller, its just a standard ViewController with an image view and a label, and all of my segues are called by ctrl

UITableView didSelectRowAtIndexPath sometimes called after second tap

南笙酒味 提交于 2019-11-28 03:19:35
问题 I'm facing a curious UITableView behaviour and i don't know where this is coming from. I'm building a very simple single view IOS8 Swift application with a first ViewController with a UITableView inside it and one custom Image cell. When i tap on a cell it Segue to my SecondViewController . My UITableView delegate and datasource is connected to the first ViewController. Everything is working except when i tap a cell sometimes i have to tap it twice to trigger the Segue. Here is my