xcode-storyboard

Xcode 7 ibtool error: Deploying Storyboard References to iOS 8.0 requires that your storyboards do not share any view controller identifiers

我的梦境 提交于 2019-12-06 02:54:54
问题 I have an iOS app targeting iOS 8 and 9 which I'm in the process of upgrading to use Storyboard References instead of links through code. I've gradually converted more and more bits over, when suddenly I started getting this compiler error: : error: Deploying Storyboard References to iOS 8.0 requires that your storyboards do not share any view controller identifiers. A.storyboard and Z.storyboard both contain a view controller with identifier "ZNavigationController". Z.storyboard absolutely

UILabel subclass appearance in Storyboard

℡╲_俬逩灬. 提交于 2019-12-06 02:44:20
问题 I have created a subclass of UILabel called MyUILabel. The only thing changed is the font and font-size. It appears as expected when I run the app. However, the in the Storyboard, the default UILabel is showed. Is there any way to make Storyboards show the font and font-size from my subclass? MyUILabel: public class MyUILabel : UILabel { required public init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) self.font = UIFont(name: Constants.DefaultFont, size: 30) } } 回答1: You could

NSSplitViewController causing contained views to draw over window corners

浪尽此生 提交于 2019-12-06 02:05:03
I'm trying to create a little Finder clone using Cocoa. I'm placing a source list table view (to act as a sidebar) and a standard table view inside of an NSSplitView controlled by an NSSplitViewController . Unfortunately, when I run this, the standard table view's white background is drawn over the bottom right corner of the window, resulting in a non-rounded corner: I'm able to avoid the problem by not using NSSplitViewController , both with standard nib files or storyboards to get the desired result: But… I really want to use NSSplitViewController . Is there any way to prevent this from

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

前提是你 提交于 2019-12-06 01:27:33
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 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) and close all windows, quit xcode and open the project with xcode version you want. 来源: https:/

How to honor Dynamic Type Accessibility Sizes with a custom font in an iOS storyboard

南楼画角 提交于 2019-12-05 16:27:05
问题 How can I use the dynamic type text style "Title 1" and set the font face to the built-in font Chalkboard SE for a UILabel in a storyboard? I need to honor the Dynamic Type size in iOS (Apple has been encouraging this since iOS 7?) I also need to use the built-in font Chalkboard SE, which is not used by default for the "text styles" fonts. I am currently using a custom font as shown in the image, but need the font to change size in accordance with the user's Dynamic Type / Accessibility Sizes

Storyboard warning : First baseline layout attribute before iOS 8.0

≡放荡痞女 提交于 2019-12-05 10:28:38
I can't figure out how to get rid of this warning, I'm using a storyboard with many viewControllers (with labels, textfields and a lot of constraints ) all of them have been created almost the same way. When I click on the warning it highlights a UILabel inside a scrollView : This scrollView has many UILabels with constraints, I tried everything I could find on so including : Attribute Unavailable: First baseline layout attribute on iOS versions prior to 8.0 This Warning doesn't cause my app to crash,I've tried on the simulator and an iPhone 4 (ios 7.1.2). But I'm worried about the AppStore

Drag/pan gestures on a GMSMapView not getting captured after update to SDK 1.3.1

試著忘記壹切 提交于 2019-12-05 00:23:00
问题 I'm having a strange problem with capturing drag/pan gestures on a GMSMapView through a Gesture Recognizer. This problem surfaced only after updating from GMS 1.2 to 1.3.1, where (quoting the documentation), Touches are consumed more agressively by GMSMapView I have a UIViewController holding a GMSMapView under its main view. I found GMSMapDelegate does not provide methods for handling drag/pan gestures, so I added a UIPanGestureRecognizer to the UIViewController, linked it to an IBAction

Storyboard reference to cocoapods storyboard seems broken

余生颓废 提交于 2019-12-04 23:10:30
问题 I have a project called "ViewTester" with a cocoapod linked to it called "blub" Now in the main.storyboard i want to reference blubstory.storyboard like so: Properties of the storyboard reference: BundleID of ViewTester: BundleID of blub: When i try to run this i get the following exception: I saw a related stackoverflow post here, but the answer did not resolve the issue as there are is no target membership for "blub" in main.storyboard Any ideas / solutions on this issue? To me it seems

Xcode 7 ibtool error: Deploying Storyboard References to iOS 8.0 requires that your storyboards do not share any view controller identifiers

孤街醉人 提交于 2019-12-04 09:00:03
I have an iOS app targeting iOS 8 and 9 which I'm in the process of upgrading to use Storyboard References instead of links through code. I've gradually converted more and more bits over, when suddenly I started getting this compiler error: : error: Deploying Storyboard References to iOS 8.0 requires that your storyboards do not share any view controller identifiers. A.storyboard and Z.storyboard both contain a view controller with identifier "ZNavigationController". Z.storyboard absolutely contains ZNavigationController , it's supposed to be there, however A.storyboard assuredly does not

Storyboard “Main”, but didn't get a UITableView when using UITableViewController

安稳与你 提交于 2019-12-04 08:20:44
问题 I have been going through this tutorial, "Option 2: Prototype Cells" I implimented all the steps, but, the following code gives me an error: @interface MTViewController : UITableViewController @end the error message is: instantiated view controller with identifier "UIViewController-BYZ-38-t0r" from storyboard "Main", but didn't get a UITableView.' Here is what I tried - I changed UITableViewController to UIViewController and the error went away. But, the tableview remains blank. Can you tell