Post

Replies

Boosts

Views

Activity

New UIButton title left aligned
Hello There, I was trying to do a Button with title left aligned. With the old UIButton, I would have used the title-/contentEdgeInsets to achieve this, but with the new button these values are deprecated and do not work anymore. As far as I understood, with the new button only the spacing between the elements (sub-, title and image) is controllable. I also tried just setting the buttons width to the same width as the label, what would be possible in my case since it should be kind of a "hyperlink-button" which has no background or border. This works so far, but once the user interacts with the button, the title label gets multiline, which is on the one hand not wanted and on the other hand of course does not look left aligned anymore. (Besides the buttons height is fix in my case which leads to clipping of the title) So here again in short: Is there any way to make the title of the new UIButton left aligned inside of the button? Thank you very much in advance.
2
0
1.6k
Oct ’23
Getting rosetta-error during Ad Hoc Distribution in Xcode Organizer
I'm trying to distribute my app via Ad Hoc distribution, no matter what I'm doing (disabling bitcode, changing development-target) I'm still getting an Rosetta-Error ipatool failed with an exception: #<CmdSpec::NonZeroExitException: $ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool-classic -h -l -v -m -f -arch all /var/folders/qk/ghk51xgd28v4x63kbks_0r3c0000gn/T/IDEDistributionOptionThinning.~~~ywSDpF/Payload/AppName.app/AppName Status: pid 99322 SIGTRAP (signal 5) Stdout: Stderr: rosetta error: /var/db/oah/279293133324288_279293133324288/8c0cdbf074e9267f84d8213cd69148a144d5b977963a38001fc0798023f40af3/otool-classic.aot: attachment of code signature supplement failed: 1 /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:372:in `run' Does anyone have a suggestion what to do here?
1
0
1.7k
Aug ’22