xcode-storyboard

UISplitView with multiple ViewControllers in DetailView (storyboard)

僤鯓⒐⒋嵵緔 提交于 2019-12-25 02:20:14
问题 i'am looking for a solution to have a UISplitView with multiple ViewControllers inside the DetailView(rightView of the UISplitView). The example of apple works fine but uses nib file instead of storyboards. (https://developer.apple.com/library/ios/samplecode/multipledetailviews/Listings/ReadMe_txt.html) I found another example but there is whitespace when i implement an UITableView http://www.dharmaworks.net/Consulting/switching-detail-views-in-uisplitviewcontroller-with-ios7 回答1: During the

IOs7 multiple storyboard localization issue

南笙酒味 提交于 2019-12-23 20:38:17
问题 I use several storyboards and I have just decided to localize them (.strings files have been generated by Xcode). I notice that in the Build Phases > Copy Bundle Resources, all resources related to localization appear in red. At run time, localization works only on the main storyboard. Localization with Localizable.strings also works. But it doesn't on the other storyboards. I tried to restart Xcode but it didn't change anything. (cf Base internationalization and multiple storyboard not

How to get logs for the XCode application

橙三吉。 提交于 2019-12-23 12:07:15
问题 I'm looking for logs of the Xcode application itself. Not logs of my iOS app or device. I've been doing a bit of experimental work with the storyboard source code xml. Sometimes I'll get a random crash of Xcode or a message like "The document Main.storyboard' could not be opened. Could not verify document content" (This is not git conflict related) I'd like to look in the logs to see if it gives a clue as to what part of the xml is causing these crashes or errors. Note: I was able to find

XCode: Moving UI-elements in storyboard editor

倖福魔咒の 提交于 2019-12-23 06:57:34
问题 Is it possible to lock or freeze elements in storyboard editor so that they are ignored, when clicking and dragging? My problem is that I have several elements underneath two big UIViews that cover the whole window. So in order to for example move a button underneath them I first have to move the big views out of the way, move the button, then move them back. Is there a better way? When I select the element in the tree-view on the left, it gets deselected as soon as I click on the storyboard.

XCode 9 is being crashed on opening all storyboard files [duplicate]

时光总嘲笑我的痴心妄想 提交于 2019-12-22 11:07:29
问题 This question already has answers here : xcode 9 crash when open storyboard (14 answers) Closed 2 years ago . I have tried following solutions to fix this issue removed derive data clean build create new storyboard file 回答1: The solution for me was to remove user data in .xcodeproj and .xcworkspace. Right click > Show package content > and remove xcuserdata FOLDER ONLY. Other way to fix this is to open that project with other xcode version( for ex. you are working in xcode 8.2, open with 8.3)

How to change uiview's height using auto layout?

笑着哭i 提交于 2019-12-21 17:07:43
问题 So I created this scenario in order to understand how views increase in height according to their content. However am still not able to make it happen. This is what I have now: the textview is growing according to content. however the uiview containing it is disappearing. what constraints should I use so that when the uitextview becomes bigger, its parent view also increase in height? 回答1: ON UITextView make your you unselected These Scrolling Enabled Bounces Bounce Horizontally Bounce

iOS: Best way to make a UIScrollView with dynamic height?

回眸只為那壹抹淺笑 提交于 2019-12-20 04:36:06
问题 I'm currently setting up a UIScrollView with the following structure UIScrollView --ContentView (UIView) --ContainerView1 (UIView) --UILabel1 --UILabel2 --ContainerView2 (UIView) --UILabel3 --UILabel4 --ContainerView3 (UIView) --UILabel5 --UILabel6 I've pinned all the four edges for all the elements above and also have defined their height constraints (Storyboard complaints of zero height if I didn't do so). Now whenever my UILabel receives its text from the server, I call sizeToFit for all

Main.Storyboard Frames Not Updated

混江龙づ霸主 提交于 2019-12-20 02:29:15
问题 I am currently making an app which I plan to submit to the iOS App Store. Normally, when I update my frames in the Main.Storyboard of Xcode, it stays like that. However, now it does not. Whenever I close the app and reopen it later, the frames are not updated. It looks like this: After I update the frames, it looks like this (what I want it to look like): The app still looks fine when I run it on the simulator, but I still have 16 warnings in my app. I would like to remove these bugs as (I

Xcode Storyboard displaying the new iPhone 5 screen size?

白昼怎懂夜的黑 提交于 2019-12-18 12:46:46
问题 I have the latest version of Xcode. In one of my projects I noticed that the views for the iPhone were the new iPhone 5 screen sizes. I like it but is there a way to switch back to the smaller screen size? Not everyone has the iPhone 5. 回答1: Also, when your building your interface, you'll see a small icon that lets you quickly switch between 4" and 3.5" screens. It's the rectangular icon on the left. It toggles back and forth between phone sizes. 回答2: There's a size property in the attributes

iOS storyboard - Disable status bar on storyboard once

心已入冬 提交于 2019-12-17 23:46:43
问题 Is there a way in Xcode when using the Storyboard in the Interface Builder to disable the status bar completely, so that when I create a new View Controller I don't keep having to turn "status bar" from inferred to none. 回答1: Have you already checked if setting UIStatusBarHidden to YES in your Info.plist works? See the documentation: http://developer.apple.com/library/mac/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW15 This