storyboard

Xcode 6 open Assistant Editor in New Window

萝らか妹 提交于 2020-01-03 14:13:22
问题 I feel like I have read every link on Google pertaining to this question, but none that I have read have helped. All I want to do is view my Storyboard layout on the left monitor, and on my right monitor, in a new window, have the Assistant Editor open to "Preview" for my Storyboard so that I can preview the different devices sizes (clicking different storyboard views on the left screen should update the assistant editor preview on the right). This seems so simple, but has not proved to be.

Using UIPageViewController in storyboards

喜夏-厌秋 提交于 2020-01-03 13:37:45
问题 Is there a way to configure datasource, delegate and view controllers for UIPageViewController in storyboard without writing a code? I do see outlets for datasource and delegate in UIPageViewController, but there is no way to do connections between scenes, and no way to add additional controller into the same scene. What is the purpose to have UIPageViewController in Interface Builder if it is not configurable at all with IB? 回答1: It is fully configurable in Xcode. You'll connect the data

How do I display the CFBundleShortVersionString in my LaunchStoryboard?

人走茶凉 提交于 2020-01-03 09:59:09
问题 Is there any way to display the CFBundleShortVersionString as a UILabel text in my LaunchStoryboard without entering it by hand every time it increments? I know how to do it in code, but it is not possible to run code while the LaunchStoryboard is shown. Is it possible through Xcode variables? 回答1: I figured out the script to update the Version & Build label on LaunchScreen.storyboard based on the first answer without using any extra files. Unfortunately, Clemens Brockschmidt's solution doesn

How to call a method after a Storyboard finished?

狂风中的少年 提交于 2020-01-03 09:07:16
问题 i write the following Code: public void name(object sender, RoutedEventArgs e) { DoubleAnimation myDoubleAnimation = new DoubleAnimation(); myDoubleAnimation.From = 1.0; myDoubleAnimation.To = 0.0; myDoubleAnimation.Duration = new Duration(TimeSpan.FromSeconds(0.2)); sb1 = new Storyboard(); sb1.Children.Add(myDoubleAnimation); Storyboard.SetTargetName(myDoubleAnimation, one.Name); Storyboard.SetTargetProperty(myDoubleAnimation, new PropertyPath(Grid.OpacityProperty)); sb1.Begin(this); if (one

ios Pass data from TabbarController to ViewController in Storyboard

家住魔仙堡 提交于 2020-01-03 05:44:07
问题 I have a TabBarController with 4 tabs setup in storboard editor. When I select the 4th tab, I want to send a string to its view controller. In my TabbarController class (named TabBarVC) I implemented the following method: - (void)tabBarController:(UITabBarController *)theTabBarController didSelectViewController:(UIViewController *)viewController { NSUInteger indexOfTab = [theTabBarController.viewControllers indexOfObject:viewController]; if(indexOfTab == 3) { SupplierListVC *slvc =

View on screen Resizing and Repositioning itself when new View is added into hierarchy

送分小仙女□ 提交于 2020-01-03 05:35:25
问题 I have this problem, i am moving a 'A' View on screen wherever user want's to move (Which is added from storyboard), i am moving View using event-handling methods and that is working fine, What problem i have now is, when i add new 'B' View (Programatically) to ViewControllers view, my 'A' View which i have moved to some other position, moves automatically to its default position. (At the position where it is on storyboard). So i think, i have figured out the reason that whenever we add new

How to pass data from one View Controller to another in a Storyboard when going back?

…衆ロ難τιáo~ 提交于 2020-01-03 05:08:11
问题 Scenario: Storyboard with UINavigationController as initial controller. MainVC (navigation controller's root vc) needs the user to choose a location on a map. MainVC pushes a VC containing a MapKit map and adds itself as listener for a notification the MapVC sends out when the user chooses a location. MapKit is a memory hog, we all know that. iOS gives me a memory warning, I do all the things that need to be done, then iOS deallocates all it can deallocate, including the MainVC. MapVC sends

Unable to switch views programmatically using a storyboard?

空扰寡人 提交于 2020-01-03 04:56:08
问题 I am developing a storyboard-based application, using XCode 4.2. I'm new to storyboards, before that I used to switch views by creating a new instance of a class like this: if (x==1) { theClass *theView ; theView= [[theClass alloc] initWithNibName:nil bundle:nil]; [theView setText:theText]; [reader presentModalViewController:theClass animated:YES]; //where reader is an instance of the ZBar library } With storyboards, here is the code I am trying: if (x==1) { [self performSegueWithIdentifier:

Animation target not specified issue - Silverlight storyboards

你。 提交于 2020-01-03 04:56:04
问题 Having some real head scratching going on here as I can't seem to think why I am getting the Animation target not specified error. I create a static class for dishing out storyboards of lots of little fires "burning". I then create as many of those fires as the user wants and assign a new storyboard to it, all in Csharp. I then begin then storyboard, but as I say, I keep getting this error and I can't seem why. Here is the storyboard creating class, and when I try to call it. public static

Can't Access the storyboard from SenTeskingKit

…衆ロ難τιáo~ 提交于 2020-01-03 04:32:05
问题 my question is that I am trying to test some stuff from SenTesking Kit. -(void)testStoryboard { storyBoard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; STAssertNotNil(storyBoard, @"Can't access the storyboard"); } I have also added the UIMainStoryboardFile to the DemoTests.plist but am getting this kind of error: error: testStoryboard (DemoTests) failed: Could not find a storyboard named 'MainStoryboard' in bundle NSBundle</Developer/Platforms/iPhoneSimulator.platform