storyboard

Mac App Storyboard - Access Document in NSViewController

好久不见. 提交于 2020-01-01 01:16:12
问题 I am currently fighting with NSDocument in a document based Storyboard based Cocoa Application (Objective C). Can anybody tell me how i can access the document in the NSViewController subclass? I've tried to access it the following way - but the document is null: [self.view.window.windowController document]; Thanks for your help! Best regards Martin 回答1: I was just wrestling with this myself. I started with the standard Yosemite template and was trying to use [self.view.window

A home button in iOS 5, xcode 4.2, Story board

徘徊边缘 提交于 2019-12-31 05:20:28
问题 iOS 5.0, xCode 4.2 I am doing a multistep questionnaire. There are about 10 questions on each branch, and there are sub branches. But the logic is fairly linear. Mostly Yes/no answers, but some multi choice options. The questionnaire will come to a conclusion page. On this conclusion page, I would like to have a button that says HOME which takes the user to a specific start page so they can start again. The problem is that I want the navigation controller stack to be cleared so the back

WPF image moving and rotating

烂漫一生 提交于 2019-12-31 02:53:05
问题 First of all I place here my situation sreenshot: So I need to move these cars(cars are Image s) where the arrow goes. For driving straight I use this function: private static void Eiti(Image target, double naujasX, double naujasY, double greitis, char kelias) { var top = Canvas.GetTop(target); var left = Canvas.GetLeft(target); top = Double.IsNaN(top) ? 0 : top; left = Double.IsNaN(left) ? 0 : left; naujasY = Paveikslas.canvasY(naujasY, kelias); var storyboard = new Storyboard(); greitis =

Viewport Origin animation

ぃ、小莉子 提交于 2019-12-31 01:28:45
问题 I am developing a Windows phone app, where I have a viewportcontroller, that enables me to zoom in and out on content. I want to center the zoom at the point where I zoom. Which I can do with Viewportcontroller.SetViewportOrigin() But this makes the viewportcontroller jump to the origin I set. Which does not look very nice. I therefore would like to create a storyboard that changes the origin gradually as the zooming occurs. I therefore would like to ask how I should do this with a property

Viewport Origin animation

孤人 提交于 2019-12-31 01:28:11
问题 I am developing a Windows phone app, where I have a viewportcontroller, that enables me to zoom in and out on content. I want to center the zoom at the point where I zoom. Which I can do with Viewportcontroller.SetViewportOrigin() But this makes the viewportcontroller jump to the origin I set. Which does not look very nice. I therefore would like to create a storyboard that changes the origin gradually as the zooming occurs. I therefore would like to ask how I should do this with a property

xcode storyboard won't accept changes

醉酒当歌 提交于 2019-12-30 17:22:33
问题 My storyboard seems locked. I have added new labels and imageviews to two different scenes, but at runtime the labels and pictures don't show. (All original items are displayed correctly.) I have tried Clean, Build, and Building for Running, Testing, and Profiling. I have copied the entire project to another Mac. It runs the program, accepts changes in the code, but this Mac, too, will not allow changes in the storyboard. (No added items, no changing the position of original items.) It's as

Xcode 8.1 storyboard showing blue lines only

白昼怎懂夜的黑 提交于 2019-12-30 17:15:15
问题 I installed Xcode 8.1 and the storyboard shows only blue lines, for all UI elements. If someone has figured it out let me know. I am unable to revert it to even Xcode 8.0. 回答1: Ok, So finally I too got the blue line problem in Xcode 8.1 Here is the screenshot We can see the error message: An internal error occurred. Editing functionality may be limited with a Report a Bug button on the right side. Don't know why it happened. But I just quit Xcode and Simulator and restarted it. That fixed it

Separate animations work, Storyboard doesn't. Why?

≯℡__Kan透↙ 提交于 2019-12-30 11:39:50
问题 EDIT 1 : In order to satisfy "Complete, Minimal And Verifiable" Example Requirement TL:DR; Storyboard doesn't animate at all. Why? I am attempting to create a storyboard which will animate the offsets of all the gradient stops within a gradient, shifting them from the left to the right. I'm certain this is just a stupid syntax or argument error or something someplace on my part but I can't find it. This is the XAML : <Window x:Class="GradientShifting.MainWindow" xmlns="http://schemas

Separate animations work, Storyboard doesn't. Why?

那年仲夏 提交于 2019-12-30 11:39:47
问题 EDIT 1 : In order to satisfy "Complete, Minimal And Verifiable" Example Requirement TL:DR; Storyboard doesn't animate at all. Why? I am attempting to create a storyboard which will animate the offsets of all the gradient stops within a gradient, shifting them from the left to the right. I'm certain this is just a stupid syntax or argument error or something someplace on my part but I can't find it. This is the XAML : <Window x:Class="GradientShifting.MainWindow" xmlns="http://schemas

iOS Storyboard - any way to change font size based on screen size?

本小妞迷上赌 提交于 2019-12-30 11:10:09
问题 I want to be able to scale the font size on a storyboard per screen size without writing code to do this, is this possible. I already tried to set up constraints to adjust the label and set the font scaling factor but what happens then it depending on how long the text is I end up getting a screen that has different font sizes rather than all of the font for that screen being the same size? 回答1: Xcode provides auto shrinks facility, Which adjust based on screen size Goto Attribute inspector->