Interface Builder

RSS for tag

Build interfaces for applications without writing code using Interface Builder, an editor within Xcode.

Interface Builder Documentation

Posts under Interface Builder tag

119 Posts
Sort by:
Post not yet marked as solved
1 Replies
142 Views
Hello everyone, I'm facing a problem that I can't connect the button to the unwind segue. I have made a simple application with three controllers. The unwind segue code is located in Table View Controller. @IBAction func unwindToTableViewController(_ unwindSegue: UIStoryboardSegue) { let sourceViewController = unwindSegue.source } A first segue has been implemented from the Add button on Table View Controller to the View controller. It is a Push type. There is a Save button as Bar Button Item in the View Controller. When I try to drag a connection from Save button to the Exit icon of the View Controller, the context menu does not open indicating the unwind segue. Instead, a context menu appears with different types of segues. At the same time, if I just click the Exit icon, a context menu appears where the unwind method is visible. Just in case, I re-read the documentation again and looked at examples of using the unwind method. There is no mention of this problem anywhere. The only hypothesis left is that this problem is related to the new version of Xcode. The example of application given here was created in XCode 15.3. I have tested the same application on another computer, where the version of Xcode is 13.4.1. There, when I try to drag a connection from the Save button to the Exit icon, a context menu appears with the name of the unwind method. But the problem didn't end there because after the connection is established, the button does not work and the View Controller does not dismiss. I can't understand why this is happens. It worked before. Is that one a bug or the feature? How to fix it? Any ideas would be greatly appreciated!
Posted
by John368.
Last updated
.
Post not yet marked as solved
0 Replies
324 Views
I am new to using iOS Objective-C size classes like Regular, compact, Any. I found that Compact size classes are anything less than ~640 pts and Regular size classes are anything larger than ~640 pts . Is that correct for both iphone and ipad? How can I use size class to make an image full screen on all the iphone and ipad devices and on any orientation? How many images will I need? Any help and insight is greatly appreciated!
Posted
by m2024.
Last updated
.
Post not yet marked as solved
0 Replies
124 Views
UICollectionView vision becomes small for a few seconds when cell tap See image [Before] [After] In practice, when I press on the cell (tap) it should tag the element, on iOS 17 it works perfectly, on iOS 15.8.1 however it has the ugly effect of shrinking the entire content of the collectionview for a few seconds. Can anybody help me ? I don't know where to look anymore
Posted
by m.chiodi.
Last updated
.
Post not yet marked as solved
2 Replies
250 Views
xcode version: Version 15.3 I successfully build app with xcode. And when I tried to distribute app on appStore, Xcode keeps being killed without any error log. I also rebooted computer. It seems it killed in signing progress,, but it is configured singing well.
Posted Last updated
.
Post not yet marked as solved
0 Replies
201 Views
I have a collelctionview inside a tableview cell in UIKit. The cells of the collectionview have dynamic content and their height and width depends on the content, which decides the height of the collectionview inside tableview cell. I have used many methods to calculate height correctly at first and as I scroll the tableview or perform any button action, the height does not gets correctly to me. Please provide a good solution or replacement for this problem.
Posted
by Ayush0406.
Last updated
.
Post not yet marked as solved
0 Replies
242 Views
I have successfully created the Intents UI Extension file for the wallet, obtained the requisite certificate, and adhered to the MeaWallet guidelines. Additionally, I have generated a sandbox login ID and successfully logged into the simulator using the sandbox login ID. In an attempt to integrate the Intents UI Extension file into an existing project, I followed these steps: Debug -> Attach to Process by PID or Name. Subsequently, I conducted a search for the Intents UI Extension file name, selected the appropriate file, and clicked the attach button. However, Xcode is currently displaying 'waiting for attachment.' Despite these efforts, I encountered an issue where the wallet extension controller is unable to access the application when attempting to run it.
Posted
by Theju.
Last updated
.
Post marked as solved
1 Replies
428 Views
I have a UIScrollView that works perfectly on simulators for all the devices and orientations. However, whenever I try to do testing of the App on an actual device, the UIScrollView is all black. In addition, it looks like it scrolls since there's a scroll bar along the edge that moves when I try to "scroll" the black box. However, when I change orientations of the device, it no longer even does that. I have stopped the App at various points to test out the heights and widths of the various views and they all look good. Yet, nothing but a black box shows up on the device. Any thoughts? Thanks.
Posted Last updated
.
Post not yet marked as solved
0 Replies
254 Views
Hello Folks! I'm new to Xcode and I'm trying to create a simple 2D-Game with c++ and I found out, that SFML offers a nice tool to create a game engine. Now my purpose is to develop tools for studying and I'm trying to link SFML with Xcode. Since I already was successful in creating a pop-up window via the terminal I believe I can handle to do it with Xcode. I tried the following: I created a new SFML project in Xcode with the same Main.cpp file. I went to the build settings and changes the Header-Path to the SFML-Include folder and the Library-Path to the SFML-lib folder. I also linked the binaries with the libraries in the build phase. When I run the script Xcode told me, that the build was successful and the app tried to open the window (It jumped around and appears in the strip. But I also got an error message, that the dynamic libraries couldn't load. It would be very nice, if someone could help me with my issue. Happy to hear from you, kind regards Jeremy
Posted
by Jryl123.
Last updated
.
Post not yet marked as solved
1 Replies
358 Views
I have seen similar problems reported but find myself unable to fix this. I have datePicker and a segmented control as subviews in a stack, built on the interface builder. These display on the interface builder with the correct white color text but once the app builds on the simulator, it displays as black text. I have tried setting the value for the color in viewDidLoad using: datePicker.setValue(UIColor.white, forKeyPath: "textColor") but with no luck. I'm not sure if the fact they are in a subview is the problem, and I'm just missing a tick box somewhere? It's especially confusing that it seems to display properly on the storyboard but as soon as the app loads it reverts to black. Could this be a bug in Xcode? Many thanks for any help.
Posted Last updated
.
Post not yet marked as solved
4 Replies
420 Views
I'm experimenting with the relatively new (to me) compact DatePicker. I'd like a column of aligned fields, the first two on top are date pickers for user input, the ones below that are dates outputted in textfields calculated from dates input by user. In Interface Builder in Xcode, it looks mostly like I want it, black text centered in white rectangular text fields. But in production on my iPhone, the DatePickers are functional, but they are not centered and they appear on a gray background. I haven't been able to figure out what settings to adjust to make the DatePicker's date centered and on white background. Screenshots attached. Grateful for help. --JS
Posted
by jds91md.
Last updated
.
Post marked as solved
2 Replies
388 Views
I have an issue where I see bottom navigation bar "menu". I created a menu so I don't need that default navigation bar. I just want to delete it so it does not shows at all. Any tips? To be clear I need to delete that "gray" bar behind white menu.
Posted Last updated
.
Post not yet marked as solved
0 Replies
250 Views
Hi everyone. I want to add a label to the view controller by pressing ctrl and dragging it into the code but it doesnt let me. With a button, this works perfectly but with a label it won't work. Any ideas why? Or how I can do it in another way? Thanks
Posted Last updated
.
Post marked as solved
5 Replies
334 Views
I have started a course on IOS app development. I learnt about basic stuff about the interface like how to add buttons and constraints and stuff. Now I need to add the function to the button in the assistant editor. But it does not let me edit, delete or type anything with it. First I thought i opened the wrong editor but I even tried a shortcut ( control + option + command + return ) and it opens the same editor. I have been stuck on this for the past week. Please suggest :)
Posted Last updated
.
Post marked as solved
2 Replies
906 Views
The need is to persist between launches the state of storyboard objects such as of type UISwitch, UITextField, etc. Can this be done using @AppStorage? If so how can @AppStorage be set to watch these? I tried getting @AppStorage to watch an outlet class member variable that is connected to the storyboard object: @IBOutlet weak var iPhoneName: UITextField! @AppStorage("iPhoneName") var iPhoneName: String = "" This got an error because the variable to be watched is already declared. I decided to make the the watched variable different than the one connected to the Storyboard's UITextField object: @AppStorage("iPhoneName") var striPhoneName: String = "" and got the error: Unknown attribute 'AppStorage' . In what import library is @AppStorage defined? If @AppStorage cannot be used for this, what is the easiest way to code storyboard object persistence? I am looking for an easy, and quick way. I am not concerned with memory usage right now.
Posted
by spflanze.
Last updated
.
Post not yet marked as solved
0 Replies
234 Views
I’m having problems implementing a rather simple concept in a Storyboard (for backward compatibility) using IB, and am wondering if I can ask for help using one of my TSI’s? I’m trying to create a simple 5 or 6 text line app, which takes up about half an iPhone 12 screen in portrait, but then still only takes up about half the screen when rotated into landscape? I haven’t figured out how to do this. Trying to insert some blank imageviews as vertical separators, but can’t get them to be proportional when rotated. Also, please be kind - I’m a COBOL/FORTRAN/Assembler programmer from the 60’s and struggling through the Swift era. I did have a few apps on the app store at one time (objective C), but that was a while ago and struggling to keep up. Thanks in advance.
Posted Last updated
.
Post not yet marked as solved
1 Replies
333 Views
I've encountered while attempting to integrate SwiftUI into an existing UIKit project. Specifically, I have experienced recurring view crashes when creating new SwiftUI views within the project. My Feedback id is FB13509337 I would appreciate your assistance in resolving this matter promptly, as it is critical to the development of our application. Your prompt attention to this issue would be greatly appreciated
Posted
by Qazi09.
Last updated
.
Post not yet marked as solved
0 Replies
469 Views
Hi, I Just Updated MacOS and XCode and then tried to Build App. Now it suddenly started throwing Error: Command CompileStoryboard failed with a nonzero exit code I've tried a few solutions but none worked. Got following Error: 2023-12-27 16:14:06.315 ibtoold[70732:612834] [MT] DVTAssertions: ASSERTION FAILURE in IDEInterfaceBuilder/AutolayoutFoundation/Model/Constraints/IBLayoutConstraint.m:1141 Details: We only understand width/height, not 0x3 Object: <IBLayoutConstraint: 0x600001772c80> Method: -absoluteGeometricDescriptionInCoordinateSpaceOfView:userInterfaceLayoutDirection:ofItem:attribute: Thread: <_NSMainThread: 0x600002e780c0>{number = 1, name = main} Hints: Backtrace: 0 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation) 1 _DVTAssertionHandler (in DVTFoundation) 2 _DVTAssertionFailureHandler (in DVTFoundation) 3 -[IBLayoutConstraint absoluteGeometricDescriptionInCoordinateSpaceOfView:userInterfaceLayoutDirection:ofItem:attribute:] (in IBAutolayoutFoundation) 4 -[IBLayoutConstraint geometricDescriptionInCoordinateSpaceOfView:userInterfaceLayoutDirection:] (in IBAutolayoutFoundation) 5 -[IBLayoutConstraint geometricCompare:withUserInterfaceLayoutDirection:] (in IBAutolayoutFoundation) 6 -[IBLayoutConstraint compare:withUserInterfaceLayoutDirection:] (in IBAutolayoutFoundation) 7 __63-[NSView(IBViewIntegration) ibConstraintComparatorForDocument:]_block_invoke (in IDEInterfaceBuilderKit) 8 __CFSimpleMergeSort (in CoreFoundation) 9 __CFSimpleMergeSort (in CoreFoundation) 10 CFSortIndexes (in CoreFoundation) 11 -[NSMutableOrderedSet sortRange:options:usingComparator:] (in CoreFoundation) 12 -[NSView(IBViewIntegration) ibPrimitiveAddConstraintsToCandidateListOnly:thatAreAlreadyInDocument:] (in IDEInterfaceBuilderKit) 13 __53-[NSView(IBViewIntegration) _ibUnarchiveConstraints:]_block_invoke_2 (in IDEInterfaceBuilderKit) 14 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation) 15 __NSDictionaryEnumerate (in CoreFoundation) 16 __53-[NSView(IBViewIntegration) _ibUnarchiveConstraints:]_block_invoke (in IDEInterfaceBuilderKit) 17 __76-[IBDocumentUnarchiver registerDelayedReferenceUnarchivingOfType:withBlock:]_block_invoke_2 (in IDEInterfaceBuilderKit) 18 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 19 __76-[IBDocumentUnarchiver registerDelayedReferenceUnarchivingOfType:withBlock:]_block_invoke (in IDEInterfaceBuilderKit) 20 -[IBDocumentUnarchiver enableUnarchivingReferencesOfType:] (in IDEInterfaceBuilderKit) 21 -[IBDocument unarchivePlatformIndependentDataWithUnarchiver:error:] (in IDEInterfaceBuilderKit) 22 -[IBStoryboardDocument unarchivePlatformIndependentDataWithUnarchiver:error:] (in IDEInterfaceBuilderKit) 23 -[IBDocument unarchiveDocumentWithUnarchiver:error:] (in IDEInterfaceBuilderKit) 24 __48-[IBDocumentUnarchiver unarchiveDocument:error:]_block_invoke (in IDEInterfaceBuilderKit) 25 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 26 -[IBDocumentUnarchiver unarchiveDocument:error:] (in IDEInterfaceBuilderKit) 27 __61-[IBDocument decodeContentsOfURL:ofType:decodingStyle:error:]_block_invoke (in IDEInterfaceBuilderKit) 28 -[IBDocumentAutolayoutManager ignoreAutolayoutStatusInvalidationDuring:] (in IDEInterfaceBuilderKit) 29 -[IBDocument ignoreAutolayoutStatusInvalidationDuring:] (in IDEInterfaceBuilderKit) 30 -[IBDocument decodeContentsOfURL:ofType:decodingStyle:error:] (in IDEInterfaceBuilderKit) 31 -[IBDocument readFromURL:ofType:error:] (in IDEInterfaceBuilderKit) 32 IBLoadDocument (in ibtoold) 33 -[IBCLIInterfaceBuilderToolPersona invokeArguments:outputDictionary:] (in ibtoold) 34 -[IBCLIInterfaceBuilderToolPersona runSingleInvocation:outputtingToFileHandle:andVerifyingEnvironment:] (in ibtoold) 35 IBCLIServerRunSingleInvocation (in ibtoold) 36 __IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess_block_invoke_2 (in ibtoold) 37 __IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess_block_invoke (in ibtoold) 38 -[IBCLIErrorForwarder forwardErrorOutputToDescriptor:whileInvokingBlock:] (in ibtoold) 39 IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess (in ibtoold) 40 main (in ibtoold) 41 start (in dyld) Command CompileStoryboard failed with a nonzero exit code Any help would be highly Appreciable.
Posted Last updated
.