uistoryboardsegue

Fails to load image from UIImagePickerController on next ViewController after segue

岁酱吖の 提交于 2019-12-11 05:24:08
问题 I am trying to load a picture selected on UIImagePickerController on the next view controller. i did some search on similar threads and found a few that helped me set it up, but the image does not really get 'transfered' to the next view controller. this is my code for the didFinishPickingImage and prepareForSegue: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo { self.imageChosen = image; [picker

Pop to root then perform segue on iPhone

◇◆丶佛笑我妖孽 提交于 2019-12-11 04:59:38
问题 I am running on iOS 6.0 storyboard enabled I have a NavController linked to a TableViewController. This TableView can segue to AViewController or BViewController. When I am in A, I want to pop back to the root and perform segue to B with this line : UINavigationController *nav = self.navigationController; [nav popToRootViewControllerAnimated:YES]; [nav performSegueWithIdentifier:@"GoToB" sender:self]; I checked the storyboard, GoToB do exist and is linked from the TableViewController to

EXC_BAD_ACCESS crash upon dismissing UIViewController

最后都变了- 提交于 2019-12-11 03:25:35
问题 I have two buttons triggering segues to two different UIViewCOntrollers, using this code: - (IBAction)newTransButton:(UIButton *)sender { [self performSegueWithIdentifier:@"newTransSegue" sender:self]; } - (IBAction)switchAccountButton:(UIButton *)sender { [self performSegueWithIdentifier:@"selectAccountSegue" sender:self]; } -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { NSManagedObjectContext *localContext = [NSManagedObjectContext MR_contextForCurrentThread]; if ([

Receiver has no segue with identifier“***”

蓝咒 提交于 2019-12-11 02:32:54
问题 I encounter this problem for the first time. I checked similar problems on stack overflow, but none of the solutions can solve my issue so I have this posting. Up to the present, I have two view controllers (let's say A and B) and I am trying to connect them with a segue with name "toB". When I run the program, Xcode told me Receiver(B) has no segue with identifier "toB" . I am pretty sure that the spellings of the identifier in the storyboard and in the code are exactly the same. And the

Segue with Push animation Right to Left

放肆的年华 提交于 2019-12-11 01:57:00
问题 I am using this method: [UIView transitionWithView: duration: options: animations: completion:]; to control a back animation on a segue. Precisely using this code: [UIView transitionWithView:self.view.superview duration:2.0 options:UIViewAnimationOptionTransitionFlipFromRight animations:^{ [self dismissModalViewControllerAnimated:NO]; } completion:nil]; That works, but what I really want is not a Flip, it is a Push. In other words I want to see the views sliding from right to left, one

How should I chain viewcontrollers in xcode storyboard?

送分小仙女□ 提交于 2019-12-11 01:38:21
问题 I would like to chain view controllers in a xcode storyboard to achieve the following effect: A -> B -> C -> D -> E -> B -> C -> D -> E -> B -> ... where the above letters represent separate view controllers (full sized scenes). I want to have a horizontal slide segue from right to left as I go between views and I do not want or need the state for previous views to be preserved (i.e. no push or modal segue). I do need to transfer some state between views though. Any suggestions on how to best

How to initialize popover view from UICollectionViewCell in IOS

最后都变了- 提交于 2019-12-10 15:44:26
问题 I've been tracking along with an iPad app using storyboards, and I've been stuck on this for days. How can I initiate a popover segue by selecting a cell in a collection view? The main problem is getting past the error that the popover must be anchored to a view. The approach seems to be putting a dummy popoverAnchorButton (hidden, disabled) in the view, create a segue from it to the popover view in the storyboard, position it in didSelectItemAtIndexPath , and then [self performSegue] . Code

Implementing delegation between views embedded in two separate container controllers

大城市里の小女人 提交于 2019-12-10 13:38:12
问题 The relevant part of my storyboard appears as follows: You can see the custom "Container Controller" view houses two Container Views, one which links to a Navigation Controller via embedded segue, and another that links to a custom "Master View Controller" (which implements a Table View Controller) via embedded segue. The Navigation Controller component further has a relationship with a custom "Location Filter Controller." I need to implement delegation such that when one of the UISteppers in

Why can't I create a segue using the iOS Designer? - Xamarin Studio

守給你的承諾、 提交于 2019-12-10 13:33:45
问题 I have been using Xamarin inside of Visual Studio for a little while now but I thought I would give Xamarin Studio a go on my Mac. All is well until I try to create a segue on the storyboard. I have two view controllers, one being the main one. I add a button then CTRL + drag from the button to the second view controller. In VS this works great however in Xamarin Studio when I release the button the segue menu pops up and closes instantly not allowing me to select the desired option. Has

segue: destination view controller weirdness

北城余情 提交于 2019-12-10 04:13:34
问题 In my app, I use a storyboard and segues, and I often pass data to the destination view controller before doing the segue, as follows: - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([segue.destinationViewController respondsToSelector:@selector(setMyData:)]) { [segue.destinationViewController performSelector:@selector(setMyData:) withObject:myData]; } } It works everywhere except in one place. The selector gets called, the data gets set, but when the segue completes