interface-builder

How to disable “Relative to margin” option for newly created constraint in Xcode6

≯℡__Kan透↙ 提交于 2019-12-20 16:20:35
问题 I want to disable automatic adding Relative to margin when creating constraints in IB of Xcode 6 . It's nice that they turn this option on by default, but I have to support iOS7 , so it turned out I have to manually disable this option every time after adding new constraint. I found this setting for disabling it beforehand, but it's always on by default. 回答1: This plugin will set a default value of Constrain to margins to disabled. https://github.com/mshibanami/DefaultMarginDisabler 回答2: The

UITableView uses all available space in Interface Builder

∥☆過路亽.° 提交于 2019-12-20 14:09:57
问题 I'm having trouble creating a UIView (in Interface Builder) that contains a UITableView with some other object, such as a UIButton or UILabel. The UITableView always takes up the maximum amount of space in the UIView, regardless of the size of the UITableView object itself. The File Owner is a standard UITableViewController. 回答1: Here's how to do this easily: 1) Create a table view controller with xib. 2) Change the inherited type in the .h file from UITableViewController, to UIViewController

any Cocoa control code that I can use that acts as a patch bay?

假装没事ソ 提交于 2019-12-20 10:57:12
问题 I would like to make a patch bay type control... any source online that anyone knows of that I could work from? Thanks 回答1: The closest thing I'm aware of is EFLaceView: http://www.cocoadev.com/index.pl?FlowChartView Edit: EFLaceView seems to have disappeared, but I have a saved copy: EFLaceView Edit: Version of EFLaceView on github, with more recent changes than link above. 回答2: Unless you can find someone online who is sharing exactly the kind of control you're looking for, you don't have

What's the difference between outlet and referencing outlet in a simple sentence?

↘锁芯ラ 提交于 2019-12-20 10:47:00
问题 Is outlet connect to a subview and referencing outlet connect to the stuff? Is that it? 回答1: The term referencing outlet means an outlet in another object that references, or points to, the current object. As an example, say you have a nib that has a File's Owner and a UITableView in it, among other things. In order for a tableview to work it has a datasource and delegate, which are outlets and can be connected in IB. From the standpoint of the tableview the datasource and delegate are

How to disable Interface Builder document versioning from auto updating?

孤街醉人 提交于 2019-12-20 10:30:05
问题 This question is still getting a lot of upvotes. So look at Update3. once you have upvoted, commented, answered, please please please file a radar Viewing a nib / xib, modifies the file, forcing me to either commit the change or undo the change. This is not an issue, until there are merge conflicts. Detail: I work in a team of 5 iOS developers, and the last few versions of XCode, we are experiencing an issue with the .xib / nib files getting touched / modified when anyone opens the file

Nested UIStackViews Broken Constraints

人盡茶涼 提交于 2019-12-20 09:30:57
问题 I have a complex view hierarchy, built in Interface Builder, with nested UIStackViews. I get "unsatisfiable constraints" notices every time I hide some of my inner stackviews. I've tracked it down to this: ( "<NSLayoutConstraint:0x1396632d0 'UISV-canvas-connection' UIStackView:0x1392c5020.top == UILabel:0x13960cd30'Also available on iBooks'.top>", "<NSLayoutConstraint:0x139663470 'UISV-canvas-connection' V:[UIButton:0x139554f80]-(0)-| (Names: '|':UIStackView:0x1392c5020 )>", "

Cocoa Key Value Bindings: What are the explanations of the various options for Controller Key?

允我心安 提交于 2019-12-20 09:24:14
问题 When I bind a control to an NSArrayController using Interface Builder, there are a variety of options under the "Controller Key" field in the bindings inspector. I understand what "arrangedObjects" is, and I semi-understand what "selection" is, but I'd love to see a really nice explanation of all the options and when to use each one. The list includes: selectionIndexes, selectionIndex, selectedObject, sortDescriptors, etc. I haven't been able to find a good explanation of these options. I'm

Cocoa Key Value Bindings: What are the explanations of the various options for Controller Key?

﹥>﹥吖頭↗ 提交于 2019-12-20 09:23:33
问题 When I bind a control to an NSArrayController using Interface Builder, there are a variety of options under the "Controller Key" field in the bindings inspector. I understand what "arrangedObjects" is, and I semi-understand what "selection" is, but I'd love to see a really nice explanation of all the options and when to use each one. The list includes: selectionIndexes, selectionIndex, selectedObject, sortDescriptors, etc. I haven't been able to find a good explanation of these options. I'm

Why aren't my custom classes appearing in the dropdown in Interface Builder?

回眸只為那壹抹淺笑 提交于 2019-12-20 06:13:42
问题 I am using Interface Builder and Storyboards to build my app. I am trying to connect my source code to my UIViewController in Storyboard, but none of my classes show up in the Custom Class dropdown menu. This is occurring in Xcode 11 beta 2 and Xcode 11 beta 4. I've tried some solutions in this Stack Overflow answer, but they are not working. I've already done all of the following: Relaunched Xcode Deleted derived data Reinstalled Xcode Tried a different Storyboard Recreated the

UITabBarItem images just appear as a grey block

强颜欢笑 提交于 2019-12-20 05:34:13
问题 I have created .png icons 20 x 20 and when I set the image property in the nib they just appear grey blocks. Any ideas? UPDATE: Here is one of the icons! 回答1: The standard tabbar icons in iOS are rendered solely from the alpha channel. Colors are ignored completely. Instead of colors you can use different alpha values that lead to a different shade of gray (or blue if selected) Make the background of your icons transparent. 回答2: Download these attached images and pass them to your designer