xcode-storyboard

Assign Radio Group to Radio Buttons

元气小坏坏 提交于 2021-02-11 13:59:27
问题 I have several radio buttons I need to assign a radio group to it so that only one radio button is selectable at a time.There is no radio group option.I have tried Assigning a single action outlet to all buttons Putting all buttons in a custom view None of this works. 回答1: In the old days, NSMatrix was the class that provided the radio group behavior. If you look up the docs for that class, you'll find the following note: Use of NSMatrix is discouraged in apps that run in macOS 10.8 and later

Assign Radio Group to Radio Buttons

纵然是瞬间 提交于 2021-02-11 13:57:19
问题 I have several radio buttons I need to assign a radio group to it so that only one radio button is selectable at a time.There is no radio group option.I have tried Assigning a single action outlet to all buttons Putting all buttons in a custom view None of this works. 回答1: In the old days, NSMatrix was the class that provided the radio group behavior. If you look up the docs for that class, you'll find the following note: Use of NSMatrix is discouraged in apps that run in macOS 10.8 and later

can I use a Gradient color in Launch screen xcode

柔情痞子 提交于 2021-01-28 12:14:22
问题 I want to know if it's possible to use gradient colors in the launchscreen.storyboards if so where can I edit it. I'm not looking to add images because it can make the app to heavy but maybe a transition to change the gradient from a-colors to b-colors. thanks in advance. 回答1: If you want to render gradients programmatically in a storyboard, you can generally define a UIView subclass to do that, but you cannot use custom classes in the launch screen. You’ll have to use an image. If your

Xcode shows “The document had 4 issues that were found and repaired./Multiple resources have the same name: groupTableViewBackgroundColor.” alert

泪湿孤枕 提交于 2020-12-05 10:29:05
问题 If I open one of the storyboards in my Xcode project, I get this alert: The document [storyboard name] had 4 issues that were found and repaired. This may be due to an SCM operation such as merging. Please save the document to fix the issues. Multiple resources have the same name: groupTableViewBackgroundColor. I tried saving the document, but the error kept popping up. What is this and how can I fix this? 回答1: This error looks like to be an Xcode bug, as I cannot recall having merge issues

Using a launch screen (.xib) stops scaling

﹥>﹥吖頭↗ 提交于 2020-07-08 19:28:03
问题 It's my understanding that apps for iOS 8 should have a storyboard file as launch screen rather than an image. I've created a really simple launch screen file that has any width and any height, and has one label of plain text reading "placeholder" and set it as my launch screen. However, when I try to run my app on the iPhone 6 and 6 Plus simulators, there's black bars around the background and the buttons on the main menu are out of place. The problem doesn't seem to be present in the 5s or

Using a launch screen (.xib) stops scaling

笑着哭i 提交于 2020-07-08 19:26:31
问题 It's my understanding that apps for iOS 8 should have a storyboard file as launch screen rather than an image. I've created a really simple launch screen file that has any width and any height, and has one label of plain text reading "placeholder" and set it as my launch screen. However, when I try to run my app on the iPhone 6 and 6 Plus simulators, there's black bars around the background and the buttons on the main menu are out of place. The problem doesn't seem to be present in the 5s or

Can't use storyboard custom instantiated window controller

百般思念 提交于 2020-05-22 07:48:18
问题 I am getting what feels like a bug when trying to custom instantiate a window controller from a storyboard. I am using NSStoryboard.instantiateController(identifier: creator: ), which is a new function as of MacOS 10.15. The block of code in question is: Let mainWindowController = storyboard.instantiateController(identifier: "Analysis Window Controller") { aDecoder in MainWindowController(coder: aDecoder) } I have SUCCESSFULLY used basically this exact code for custom instantiating the main

Can't use storyboard custom instantiated window controller

流过昼夜 提交于 2020-05-22 07:47:30
问题 I am getting what feels like a bug when trying to custom instantiate a window controller from a storyboard. I am using NSStoryboard.instantiateController(identifier: creator: ), which is a new function as of MacOS 10.15. The block of code in question is: Let mainWindowController = storyboard.instantiateController(identifier: "Analysis Window Controller") { aDecoder in MainWindowController(coder: aDecoder) } I have SUCCESSFULLY used basically this exact code for custom instantiating the main

Unknown class FBSDKLoginButton in Interface Builder file

偶尔善良 提交于 2020-02-23 10:41:21
问题 I am experiencing a very frustrating build issue with my brand new project. I am trying to integrate Facebook iOS SDK, but for some reason I am getting some bizarre errors. When trying to use FBSDKLoginKit to display an FBSDKLoginButton on a storyboard view. The first hint something is wrong is this "error" when I attempt to #import <FBSDKLoginKit/FBSDKLoginKit.h> (however it only appears as an error in the editor; it still compiles fine): "Could not build module FBSDKLoginKit." Strangely,

NSInvalidArgumentException after manually triggering seque

主宰稳场 提交于 2020-01-15 23:01:26
问题 I'm in the "awesome" position to have to support someone else's code even though before this project I have never worked in objective C or made iOS apps, so please excuse me if I'm doing something really obvious or stupid. I needed a new view controller with a custom class. First I drew the view on my storyboard. Then I created a new class which I derived off of UIViewController. Then, I set the view's custom class to this new class I made. I hooked up the single button on the view to the