xcode-storyboard

Xcode 8 GM seed Storyboard layout issue

巧了我就是萌 提交于 2019-11-28 06:56:40
I've tried XCode 8 GM seed and I've found out a serious issue in the Storyboard, either you use Auto Layout or disable it, Xcode 8 messes up with a UIView included into a UIScrollView , as shown here: The wired thing is that if I resize that embedded UIView into the ScrollView , quit Xcode and open my project again, that UIView gets bigger again, with no sense, all the times. Have you encountered the same issue? Do you think Apple fix this big bug with the Official release of XCode 8? Thanks! UPDATE Unfortunately even the official version of Xcode 8 has the same issue :( if you are using Auto

XCode Storyboard merging

拈花ヽ惹草 提交于 2019-11-28 06:08:05
Is there a way to merge XCode 4.2 Storyboard files? I'm working with another developer on an iPhone project and all my attempts at merging changes into a storyboard file have met with failure and after which Xcode is no longer able to load the storyboard. Consequently I have to do an svn revert and then redo my modifications. Adam Here's the only tool I've ever come across which lets you merge storyboards: https://github.com/marcinolawski/StoryboardMerge 来源: https://stackoverflow.com/questions/8393214/xcode-storyboard-merging

XCode 6 Tab Bar tabs greyed out

浪尽此生 提交于 2019-11-28 04:16:08
问题 Anytime I add a tab bar controller to XCode the tab bar is greyed out and I can't see any of the tabs in the storyboard. At runtime it displays fine. I can't figure out why it is happening. 回答1: Add an image to the Tab Bar Item and you will see the normal view of the tab bar on the specific View Controller where you changed it. When every single Tab Bar Item got an image you will also see the normal appearance in your Tab Bar Controller. 回答2: Setting an image for the Tab Bar Items and

How to set initial storyboard

坚强是说给别人听的谎言 提交于 2019-11-28 01:53:47
问题 I have two storyboards one of them is default called Main and the other one I have just added is called Admin . Main is used for customer, Admin is used for owner of the app. I wonder how do you set initial/main interface storyboard programmatically. P.S. I know how to change it via xcode but do not know programatically. 回答1: You do not set an initial storyboard programmatically. Here's how it works. Either you have a main storyboard listed in Xcode under Main Interface or you don't: If you

Font size on universal storyboard

久未见 提交于 2019-11-27 22:22:36
I'm building an iOS app from scratch on Xcode 6 beta 4. I'm trying to make it universal and to use autolayout to have the same views for iPhone and iPad. What is the best way to manage font sizes? For instance, a button with font size 10 might be OK on an iPhone, but I might want it to be bigger when my button scales up for the iPad. Should it be managed programmatically or is there a smart way to do this? NRitH When you're using universal storyboards, each text-displaying control in a storyboard will now have a small + icon to the left of the font setting in the Attributes Inspector. If you

Unable to connect IBOutlet from storyboard to UIView subclass

天大地大妈咪最大 提交于 2019-11-27 20:33:20
I am able to right-click and drag from my custom UIView subclass file to the storyboard elements to connect them, but unable to do so the other way around. I believe this is an Xcode bug. Is there anything that I can do to fix this? This is not the first time that it happen already and its annoying. I already tried cleaning and restarting Xcode several times with no luck. This does not work (Right clicking from the storyboard to Swift file) This works (Right clicking from swift file's IBAction to storyboard) Btw, I am using Xcode 8.1 with Swift 3.0. UPDATE: I'm not looking for an answer on how

Xcode storyboard: Internal error. Please file a bug

烂漫一生 提交于 2019-11-27 19:59:01
问题 While editing in the storyboard, specifically assigning a view controller to a specific class, I suddenly encountered this error when I wanted to run the project. Main.storyboard: Internal error. Please file a bug at bugreport.apple.com and attach "/var/folders/79/_jh611t15qsfcx165_jv_20h0000gn/T/IB-agent-diagnostics_2015-10-28_00-33-12_730000". And now I can't run my project anymore. I couldn't find any information regarding to this anywhere else. Did anyone encounter this before? 回答1: I

Text views and image view disappearing from view controller in Xcode 6.1 storyboard

五迷三道 提交于 2019-11-27 19:17:54
I updated to Xcode 6.1 to fix an error I was having with the Interface Builder Cocoa Touch Tool spiking to 99% CPU usage when I used the storyboard, which would freeze Xcode. Now that that error is fixed, I have a possibly even more frustrating error. When I use the storyboard, while I'm working on a UIViewController , my UITextView , my custom UITextView s (which are subclasses of UITextView , but for all intents and purposes in the storyboard, they're UITextView s), and my UIImageView suddenly disappear! Here's how the default main view inside my view controller looks right now: Main View

What is the difference between a .xib file and a .storyboard?

你离开我真会死。 提交于 2019-11-27 16:42:00
Can someone explain in simple words the difference between .xib and .storyboard? Sagar Hatekar 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 shows the flow of the screens. You can add segues /transitions between screens, this way. So, this minimizes the boilerplate code required to manage multiple

What is the difference between launchscreen.storyboard and main.storyboard

我怕爱的太早我们不能终老 提交于 2019-11-27 12:51:55
问题 I googled the two word together but could not find anything. I have never used it. Is there any necessity for it although we have main.storyboard. 回答1: They are two completely different things. The launch screen is what first appears when the user taps the app icon before the app is finished launching. It shows a single, static screen. It can't be dynamic and it can't use any custom classes or code. It's the replacement for launch images. The main storyboard is what your app actually displays