segue

How do I segue an image to another ViewController and display it within an ImageView?

拥有回忆 提交于 2019-12-08 11:33:38
问题 The following code allows the user to select an image from the gallery or to take a picture and displays it within the ViewController via ImageView. What I want to do here is to pass the image that was taken or selected from the gallery and pass it to another ViewController to which it gets displayed in an ImageView. Ideally once the picture is selected or taken the ViewController changes immediately to the Second ViewController and displays the image in the ImageView. How can this be

How to condition segues using CloudKit query?

蹲街弑〆低调 提交于 2019-12-08 11:24:17
问题 I created a login page backed up by CloudKit. I want to know how to create a conditioned segue if the login has a certain value, and then direct the user to a View Controller based on that value In details, I have three Segues I want to connect: sign in id segue: LoginSuccessSegue staff tab bar id segue: idStaffTabBar student tab bar id segue: idStudentTabBar First Segue LoginSuccessSegue : the sign in view controller has a show segue id LoginSuccessSegue the connects to staff tab bar

Stop Segue and show alert partially not working - Xcode

百般思念 提交于 2019-12-08 10:52:47
问题 I earlier had an issue with stopping the segue and showing an alert if the textFields were empty. That problem is solved. I now want to further run the content of these textfields through a few logical tests. However, my code doesn't seem to be catching the errors. Code as follows: import Foundation import UIKit import Darwin class View3on3 : UIViewController, UITextFieldDelegate { @IBOutlet weak var APTeams: UITextField! @IBOutlet weak var APRounds: UITextField! @IBOutlet weak var APBreakers

iOS: Storyboard Segue

。_饼干妹妹 提交于 2019-12-08 10:04:23
问题 Currently I am working for an IPad application which shows a Slideshow on the first scene - realized with a paged UIScrollView. When I click on one page in the slideshow I want to push a new VC (to a new scene, which should present multiple thumbnails... a kind of detail layer if you want so). How can I do this via segue? Currently I simply pulled out a new VC and connected the SlideshowVC with the the next VC in the scene - but nothing happens. I wrapped my head around a couple of tutorials

Passing Facebook user information between views. iOS Swift Xcode 6 [duplicate]

梦想的初衷 提交于 2019-12-08 09:51:02
问题 This question already has answers here : Passing Data between View Controllers (42 answers) Closed 5 years ago . I am new in iOS app development and I'm having a hard time trying to pass facebook user information between views. My app has 2 views. I was able to implement facebook login using this tutorial because as you might know they still dont give oficial support to swift. This is my view controller: // ViewController.swift import UIKit class ViewController: UIViewController,

Segue doesn't work in macOS

时光毁灭记忆、已成空白 提交于 2019-12-08 09:39:47
问题 I have NSSlider in ViewController that must pass integer value to SecondViewController via segue of type Show and update a View every time I move it. So, moving slider I interactively shuffle images in SecondViewController 's window. I spent a week trying to implement such a behaviour of NSSlider but I failed. Maybe I made wrong connections in Interface Builder. I don't know. If you know any other method to make NSSlider work for shuffling images, tell me, please. See updated answer for

UITableView segue within the same ViewController

半世苍凉 提交于 2019-12-08 09:03:15
问题 I have a UIViewController that contains both, a map and a tableView which are connected together and it looks something like this: And I'd like to be able to push the tableView to another tableView within the same view controller so that the map stays where is it. Of course I'd like to be able to unwind the segue backwards programmatically with a button that'll appear in the navbaritem in the top left. Similar behaviour can be observed in the iPad tableView controllers placed in a popover.

How to swipe gesture segue back to previous view ios?

我的未来我决定 提交于 2019-12-08 06:19:02
问题 I'm trying to segue back to (QueryController) the view i came from. But no swipe actions occurs... Not sure what im missing. @implementation ProfileController4 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom initialization UISwipeGestureRecognizer * Swiperight=[[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(swiperight:)]; Swiperight.direction

How to set imageView image on prepareForSegue iOS?

落爺英雄遲暮 提交于 2019-12-08 05:17:10
问题 I tried to push to a ViewController using prepareForSegue . When I'm pushing, I want to set an image on ImageView in pushed view controller. Here what I tried, ViewController -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ UIButton *btn = sender; if (btn.tag == 50) { if (jpegData) { [self saveTempImage:jpegData]; } if ([segue.identifier isEqualToString:@"HomeView"]) { HomeViewController *vc = [segue destinationViewController]; vc.backImageView.image = capturedImage; vc

How I can use the Detail Disclosure Button whith Storyboard?

我与影子孤独终老i 提交于 2019-12-08 03:36:48
问题 I try to use the Detail Disclosure Button with the Storyboard, but when I build a segue from Disclosure Button to a new View it works only, when I press the table cell and not, when I press the Detail Disclosure Button. What must I do? Thanks, Bernhard 回答1: I may be wrong but I have found that it needs to be implemented through UITableDelegate code: #pragma mark - Table view delegate methods - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *