StoryBoard Assistant Editor stopped showing associated file
With XCode 11 onwards, you can option(alt) + click on the file that you want to view in assistant editor. Simple Fix.
With XCode 11 onwards, you can option(alt) + click on the file that you want to view in assistant editor. Simple Fix.
On any element in Interface Builder you can select the element and hit… Editor > Size to Fit Content (keyboard shortcut: CMD+=) This will do a “sizeToFit” on the selected element. Labels will fit their text size, image view will resize to the image size, etc…
Here’s the only tool I’ve ever come across which lets you merge storyboards: https://github.com/marcinolawski/StoryboardMerge
Don’t implement any of the methods below when you use the static table view: – (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { } – (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { } – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { }
Delete the current segue. Attach the segue from the origin view controller to the destination (and then name it). Now, your button press method should look something like this: Objective-C: – (IBAction)validateLogin:(id)sender { // validate login if (validLogin) { [self performSegueWithIdentifier:@”mySegue” sender:sender]; } } Swift: @IBAction func validateLogin(sender: UIButton) { // validate login if validLogin … Read more
I faced the same issue. And it was solved by cleaning up the build files. cmd + shift + k AND cmd + option + shift + k
You can set the image rendering mode not in the .xib file, but in an .xcassets library. After adding an image to an asset library, select the image and open the attributes inspector on the right side of Xcode. Find the attribute ‘Render As’ and set it to ‘template’. After setting an image’s rendering mode, … Read more
Apple introduced the concept of “storyboarding” in iOS5 SDK to simplify and better manage screens in your app. You can still use the .xib way of development. Pre-storyboard, each UIViewController had an associated .xib with it. Storyboard achieves two things: .storyboard is essentially one single file for all your screens in the app and it … Read more
You can try one of the following to figure out the cause: look for the IBDesignablesAgentCocoaTouch logs in this directory: ~/Library/Logs/DiagnosticReports and see the cause. Note: for user with Catalina: look for IBDesignablesAgent-iOS_<DATE>-<MAC_NAME>.crash Go to the Editor -> Debug Selected View while selecting your @IBDesignable UIView in your storyboard, and see the stack trace. Delete … Read more
Update 1/12/2016: It’s 2016 and I still prefer laying out my UIs in code and not in Storyboards. That being said, Storyboards have come a long way. I have removed all the points from this post that simply do not apply anymore in 2016. Update 4/24/2015: Interestingly Apple doesn’t even use Storyboards in their recently … Read more