Posts

Post not yet marked as solved
1 Replies
2.1k Views
I’m trying to get my game to work nicely on iPhone X. I have some text that gets inserted into a stack view, which the user can drag to the edge of any screen. When it is placed within the safe areas, the UILabel is displayed narrower (the UIStackView is adjusting its frame).Is there a way to tell UIStackView to ignore the safe area when doing its own layout? I didn’t spot one.
Posted
by ddunham.
Last updated
.
Post not yet marked as solved
9 Replies
13k Views
It looks like iOS has changed how labels are drawn. Rather than use the entire width, it wraps too early:My guess is it is trying to make the minimal rectangle it can. However, this is incorrect, because its width is in fact basically the same as the balloon. The word "more" should be on line one for a more consistent look.iOS 9 and 10 used a standard wrap, as if typing into a word processor.Are there any flags I can use to get the old behavior, of full-width wrap?
Posted
by ddunham.
Last updated
.
Post marked as solved
5 Replies
9.0k Views
Xcode 9 is now giving me a lot of warnings about “Trailing constraint is missing, which may cause overlapping with other views.”For various reasons, my game will not be localized. While I guess the suggested constraints are safe, they don’t really feel true to the spirit of my layout (plus the more constraints exist, the harder it is to change things).Is there a way to suppress these warnings on a per-project (or per-target) basis?
Posted
by ddunham.
Last updated
.
Post not yet marked as solved
1 Replies
896 Views
I don’t know if this is new in iOS 11 (though I think the error in the log is):I'm debugging my app in iPhone simulator, and click Debug View Hierarchy. It outputs[LayoutConstraints] Window has a view with an ambiguous layout. See "Auto Layout Guide: Ambiguous Layouts" for help debugging. Displaying synopsis from invoking -[UIView _autolayoutTrace] to provide additional detail.*UIImageView:0x6160000a5380- AMBIGUOUS LAYOUT for UIImageView:0x6160000a5380.minX{id: 3735}, UIImageView:0x6160000a5380.minY{id: 3737}but this particular UIImageView is the image of a UIButton. I don’t control its layout.And, there are no runtime issues shown (the way there usually are for auto layout issues).So I think this is harmless, but it’s annoying to have in the console (and could make it harder to spot real auto layout issues). Is this a real issue? A bug I should file?
Posted
by ddunham.
Last updated
.
Post not yet marked as solved
2 Replies
1.1k Views
For several Xcode 9 betas, I've been getting this error when I try to simulate under iOS 11Path: /Volumes/VOLUME//Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreSuggestions.framework/suggestdshows it is a Simulator crash.I can run in iOS 9 just fine, but would prefer to also be testing under iOS 11. Is there a workaround? (I'm now running Xcode 9b4.)
Posted
by ddunham.
Last updated
.