interface-builder

Xcode 6: Build hangs and Interface Builder Cocoa Touch Tool starts allocating all RAM

北城余情 提交于 2019-12-18 10:46:17
问题 I’m having an issue to which I haven’t been able to find a solution just by searching here or on Google. I’m building a project which is shared by multiple developers. For some reason I’m the only one with this issue. I checked out the code several times and even re-installed Xcode. So what happens is that when I build the project the build process hangs forever. A process called “Interface Builder Cocoa Touch Tool” runs and starts accumulating RAM until it reached the Mac’s limit (which is

how can I use one storyboard for 4“ and 3.5” iphone screens with autolayout (ios6 + ios7)?

喜欢而已 提交于 2019-12-18 10:20:25
问题 While there are many questions and answers about building a storyboard layout that would work both on 4" and 3.5" screen sizes, I couldn't find a suitable solution for the following scenario. I use autolayout with ios6 (and ios7), and I don't have to support landscpae or ipad. I have a UIView with several subviews, which have to look as the mockup below. It is easy to set up autolayout constraints in the storyboard to fit either of the screen sizes. My question is - how do I make autolayout

Xcode & Swift - Window without title bar but with close, minimize and resize buttons

血红的双手。 提交于 2019-12-18 09:54:47
问题 I am currently using Swift in Xcode 6, Beta 5. I am trying to remove the title bar, or any visible difference between the title bar and the actual content. If I enable "Unified title and toolbar" in the Attributes Inspector on a Window, nothing visibly happens. I have already left the title out. When no title is entered, the title bar will still be distinguishable because of the border line and background difference with the rest of the window, separating it from the actual content. An

Interface Builder Tips/Tricks Useful for a Beginner [closed]

≯℡__Kan透↙ 提交于 2019-12-18 09:47:48
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . What are some useful tips/tricks for Interface Builder that would be relevant for a beginner? 回答1: Here is the greatest tip ever in

Setting .reuseIdentifier on a UICollectionViewCell

孤街醉人 提交于 2019-12-18 06:14:44
问题 I have a particular UICollectionViewCell that I want to instantiate myself , and add to a UICollectionView . In order for this to work, the UICollectionViewCell instance needs its .reuseIdentifier property to be set. Normally, the class or Nib that describes the cell is registered with the collection view, and the collection view instantiates the cell with its .reuseIdentifier already set, with these methods: - registerClass:forCellWithReuseIdentifier: - registerNib:forCellWithReuseIdentifier

Setting .reuseIdentifier on a UICollectionViewCell

别说谁变了你拦得住时间么 提交于 2019-12-18 06:14:06
问题 I have a particular UICollectionViewCell that I want to instantiate myself , and add to a UICollectionView . In order for this to work, the UICollectionViewCell instance needs its .reuseIdentifier property to be set. Normally, the class or Nib that describes the cell is registered with the collection view, and the collection view instantiates the cell with its .reuseIdentifier already set, with these methods: - registerClass:forCellWithReuseIdentifier: - registerNib:forCellWithReuseIdentifier

UICollectionView doesn't contain UICollectionViewCell in IB

跟風遠走 提交于 2019-12-18 05:28:09
问题 I'm trying to add a UICollectionView to a .nib file in IB. I've worked through a few tutorials and had no problems. In my existing app, when I drag a collection view into a view in IB and then expand the object, the CollectionView Flow Layout is there , but there is no collection view cell. I also cannot drag and drop a cell into the collection view. Also the collection view is displayed differently, showing an image of a grid of cells instead of the normal white box. I've tried creating a

Ctrl-Drag from button to method not working. Xcode/Interface Builder

早过忘川 提交于 2019-12-18 04:48:09
问题 I am building an iOS app and i have most of the code/GUI built (its a single view app). Now i have the .xib and controller.h file next to each other and I want to associate a button click with a certain action. Everytime I try nothing happens. The UI indictor that I am dragging shows up but it wont let me connect to the method. This happens for all the objects/methods. I have an almost identical project that works just fine too! 回答1: Select your XIB file and then select "Files Owner" which is

IBOutletCollections and Interface Builder on OSX

浪尽此生 提交于 2019-12-18 04:35:19
问题 I have a NSViewController , in which I wish to create a an IBOutletCollection(NSTextField) . In my header file, I introduced these lines of code : @property (strong) IBOutletCollection(NSTextField) NSArray *iNetworkIDOctets; @property (strong) IBOutletCollection(NSTextField) NSArray *oWildcardOctets; @property (strong) IBOutletCollection(NSTextField) NSArray *oSubnetOctets; My problem is that I can't see the IBOutletCollection in Interface Builder, therefore, I can't connect my NSTextField

Can NSCollectionView autoresize the width of its subviews to display one column

六眼飞鱼酱① 提交于 2019-12-18 04:12:30
问题 I have an NSCollectionView that contains a collection of CustomViews . Initially it tiled the subviews into columns and rows like a grid. I then set the Columns property in IB to 1, so now it just displays them one after another in rows. However, even though my CustomView is 400px wide, it's set to autoresize, the NSCollectionView is 400px wide, and it's set to 1 column, the subviews are drawn about 80px wide. I know I can get around this by calling: CGFloat width = collectionView.bounds.size