storyboard

Storyboard Internal Inconsistencies

安稳与你 提交于 2019-12-18 07:44:11
问题 I have a similar situation explain on this thread (XCode 5 Storyboard Internal Inconsistencies), but I installed the final version of the Xcode and never installed any beta version. Additionally, I can't add comments in previous thread cause I don't have enough points. So i need to ask my specific case. In XCode 5, I have a problem with all of my projects "The document 'main.storyboard' has X internal inconsistencies that were found and repaired. Please save this document to fix the

After updating Xcode to IOS 9, app stucks on splashscreen and initial viewcontroller is not loaded

浪尽此生 提交于 2019-12-18 07:02:12
问题 Using a storyboard in Xcode, I have an application that worked nicely, but after latest Xcode update (IOS 9), the app stucks on the splash screen. DidfinishLaunchingWithOptions is succesfully called and reaches the end of the function, but the initial viewcontroller is not being loaded. If I switch the initial view controller to another screen, it works fine.. How can it be that the initial view controller is not loaded for the one screen, and it does get loaded if I set it on the second

After updating Xcode to IOS 9, app stucks on splashscreen and initial viewcontroller is not loaded

会有一股神秘感。 提交于 2019-12-18 07:01:35
问题 Using a storyboard in Xcode, I have an application that worked nicely, but after latest Xcode update (IOS 9), the app stucks on the splash screen. DidfinishLaunchingWithOptions is succesfully called and reaches the end of the function, but the initial viewcontroller is not being loaded. If I switch the initial view controller to another screen, it works fine.. How can it be that the initial view controller is not loaded for the one screen, and it does get loaded if I set it on the second

Popover size with UINavigationController in Storyboard

白昼怎懂夜的黑 提交于 2019-12-18 06:16:40
问题 I have created an iPad app containing a popover view embedded in a navigation controller. I like using Storyboard as much as possible, and setting the "Use Explicit Size" in Xcode give me the correct size of my popover on the iPad. But it does not resize the UINavigationController view and its embedded UIViewControllers when viewing the storyboard in Xcode. This is quite annoying as the size of my view in Xcode does not correspond to the actual size of the popover. So, my problem is not

iOS 10 custom navigation bar height

女生的网名这么多〃 提交于 2019-12-18 05:51:22
问题 I implemented custom navigation bar height, by subclassing it with following code class TMNavigationBar: UINavigationBar { ///The height you want your navigation bar to be of static let navigationBarHeight: CGFloat = 44.0 ///The difference between new height and default height static let heightIncrease:CGFloat = navigationBarHeight - 44 override init(frame: CGRect) { super.init(frame: frame) initialize() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) initialize() }

Subclass ViewController from Storyboard

大兔子大兔子 提交于 2019-12-18 05:43:26
问题 I created ViewController in Storyboard and I am using instantiateViewControllerWithIdentifier: to load it. But I need to have this VC as base class and use 3-4 subclasses to change its properties. How can I get an instance of my subclass with instantiateViewControllerWithIdentifier ? 回答1: @Bhagyesh version in Swift 3 : class func instantiateFromSuperclassStoryboard() -> SubclassViewController { let stroryboard = UIStoryboard(name: "Main", bundle: nil) let controller = stroryboard

Visually arrange subviews in a large UIScrollView

匆匆过客 提交于 2019-12-18 03:23:23
问题 One of the screens in my app has to be vertically scrollable. Its contents is more or less static, but it doesn't fit on the phone's screen (hence the scroll view). I'm using a UIScrollController as a top view, and I'd like to use the storyboard editor in Xcode to lay out all the views in it. Can I do that? I can obviously drop things on the visible part of my UIScrollController , but can I put more views "below the fold" visually? 回答1: There is another way to do it that is different from the

Designing in landscape with Storyboards

て烟熏妆下的殇ゞ 提交于 2019-12-17 23:03:26
问题 Is it possible to design interfaces in landscape with Interface Builder? Others with the same question apparently were able to do so with an arrow at the top right of any selected view, but I see no such arrow. A picture would be helpful. (Note: I am using storyboards, not xibs.) 回答1: Select the window in the storyboard, and open its Simulated Metrics property page (upper-right corner, an icon that looks like a shield next to the ruler icon). If the Simulated Metrics group is collapsed,

Conditionally following a segue

非 Y 不嫁゛ 提交于 2019-12-17 22:36:27
问题 In my app I have a login screen. When connecting a segue from the login button to the next (table) view controller however, you are always able to proceed, no matter what you type in as login information. How can I check the login information and then decide whether to perform the segue or not, so how to perform the segue conditionally? Is it possible to achieve this while working with a segue? I know it can be done programmatically, but then I need another navigation controller cause I need

Storyboard.SetTarget vs Storyboard.SetTargetName

匆匆过客 提交于 2019-12-17 20:45:39
问题 Why does Storyboard.SetTargetName works but Storyboard.SetTarget does not? Here xaml - <Grid Grid.Row="0" ClipToBounds="True"> <X:SmartContentControl x:Name="smartContent" Content="{Binding Path=MainContent}" ContentChanging="smartContent_ContentChanging"> <X:SmartContentControl.RenderTransform> <TranslateTransform x:Name="translateTransformNew" X="0" Y="0"/> </X:SmartContentControl.RenderTransform> </X:SmartContentControl> <ContentControl Content="{Binding ElementName=smartContent, Path