segue

SWRevealViewController pushing FrontVC is not causing animation and not responding to notifications

我是研究僧i 提交于 2019-12-01 12:08:46
问题 I am working on SWRevealViewController in which I have a scenario in which - Demo code link - https://www.dropbox.com/s/02fjub838hv95cr/SWRevealVC.zip?dl=0 1) I have to present a ViewController's view*(NotificationVC in my storyboard)* in my FrontVC. **2)**This childVC's View has a button*(createNotification)* which is connected to another viewController*(createNotificationVC)* via custom segue(SWRevealViewControllerSeguePushController) ,which has a back button **3)**Pressing the back button

Passing data between two controllers using storyboards

不问归期 提交于 2019-12-01 11:56:46
I am trying to pass data from one UITableViewController to another. This is my code in the initial view controller: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { Subject *subject = (Subject *)[self.fetchedResultsController objectAtIndexPath:indexPath]; [self showList:subject animated:YES]; [self.tableView deselectRowAtIndexPath:indexPath animated:YES]; } - (void)showList:(Subject *)subject animated:(BOOL)animated { ListsViewController *lists = [[ListsViewController alloc] initWithStyle:UITableViewStyleGrouped]; lists.subject = subject; NSLog(@"%@

Performing segue from another class

混江龙づ霸主 提交于 2019-12-01 11:43:28
问题 I am trying to call performSegueWithIdentifier from different class which is NSObject class and I am receiving this error: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<DerinlikView: 0x95b1ac0>) has no segue with identifier 'DerinlikToPali'' My code is: Class1 (NSObject): DerinlikView *derinlik = [DerinlikView alloc]; [derinlik performSegue]; Class2 (UIViewController): - (void) performSegue { [self performSegueWithIdentifier:@"DerinlikToPali"

How to instantiate and load a view controller before segueing to it using swift

半城伤御伤魂 提交于 2019-12-01 11:04:18
I have an issue when I go from viewController A to viewController B, in which it has roughly a 5 second delay before segueing to it. I believe it is due to the amount of views that I'm loading up in viewDidLoad. I have an xib file that has a stack view of 11 sections that represent levels. Each section has a button and a few images that can change depending on the users progress. In addition, I instantiate 10 of these xib views to load in a scrollview. This all happens in the viewDidLoad. I'm wondering if I can load viewController B and have it all ready to go before actually clicking the

How do I segue values when my ViewController is embedded in an UINavigationController?

柔情痞子 提交于 2019-12-01 10:39:58
I have two view controllers that send values back and forth via segues and the prepareForSegue method. This has been working out perfectly for me until I decided to embed my ViewController inside a Navigation Controller. If you look at the method below you can see the problem is that my destinationViewController is no longer ViewController... its my newly created UINavigationController. TimeViewController.swift (secondary controller) override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { var dest = segue.destinationViewController as! ViewController var min =

Passing data between two controllers using storyboards

你说的曾经没有我的故事 提交于 2019-12-01 10:28:29
问题 I am trying to pass data from one UITableViewController to another. This is my code in the initial view controller: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { Subject *subject = (Subject *)[self.fetchedResultsController objectAtIndexPath:indexPath]; [self showList:subject animated:YES]; [self.tableView deselectRowAtIndexPath:indexPath animated:YES]; } - (void)showList:(Subject *)subject animated:(BOOL)animated { ListsViewController *lists = [

How do I segue values when my ViewController is embedded in an UINavigationController?

百般思念 提交于 2019-12-01 07:32:44
问题 I have two view controllers that send values back and forth via segues and the prepareForSegue method. This has been working out perfectly for me until I decided to embed my ViewController inside a Navigation Controller. If you look at the method below you can see the problem is that my destinationViewController is no longer ViewController... its my newly created UINavigationController. TimeViewController.swift (secondary controller) override func prepareForSegue(segue: UIStoryboardSegue,

How to instantiate and load a view controller before segueing to it using swift

心已入冬 提交于 2019-12-01 07:05:50
问题 I have an issue when I go from viewController A to viewController B, in which it has roughly a 5 second delay before segueing to it. I believe it is due to the amount of views that I'm loading up in viewDidLoad. I have an xib file that has a stack view of 11 sections that represent levels. Each section has a button and a few images that can change depending on the users progress. In addition, I instantiate 10 of these xib views to load in a scrollview. This all happens in the viewDidLoad. I'm

Swift segue not working?

天大地大妈咪最大 提交于 2019-12-01 06:47:37
问题 My Swift segue is not working at all and isn't throwing any errors. The breakpoint shows me that the app lands on this line but nothing happens: self.performSegueWithIdentifier("SignupSegue", sender: self) The code block is a login form with Facebook: if let accessToken: FBSDKAccessToken = FBSDKAccessToken.currentAccessToken() { PFFacebookUtils.logInInBackgroundWithAccessToken(result.token, block: { (user: PFUser ? , error : NSError ? ) - > Void in if user!.isNew { self

Unrecognized Selector Sent to Instance UIViewController

百般思念 提交于 2019-12-01 05:42:40
I keep getting the error: NSInvalidArgumentException', reason: '-[UIViewController setPhotoCellName:]: unrecognized selector sent to instance when I enter my prepare for segue call. Currently I have TabBarController->NavigationController->TableViewController->TableViewController->ViewController with a UI image on it. The problem occurs when I try to segue from the second TableView controller to the ViewController. I have the segue setup from the Prototype Cell to the actual ViewController. It enters the segue and crashes. I am trying to pass an NSArray property over to the viewController to be