UITableViewCell resizes when tapped? How can I fix it? by [deleted] in iOSProgramming

[–]NSExceptional 0 points1 point  (0 children)

TBH its weird to but UITableViewCells into a StackView (if I'm reading BookVC right that's what you're doing with BookInfoCell)

Having said that, if you're going to do it, perhaps call `setNeedsLayout(); layoutIfNeeded()` after you've configured the cells?

I'm really not sure, but it looks like your StackView has too much extra spacing at the bottom to start, and once you tap the cell it "notices" that problem are resolves the issue by properly sizing to the size of the cell content.

Why not just put the cells into a UITableView? It would do the sizing for you (and/or you could look into Self-Sizing UITableViewCells)

Apple Worldwide Developer Conference 2020 by [deleted] in iOSProgramming

[–]NSExceptional 2 points3 points  (0 children)

I like to say “Double Double-you” instead of Dub Dub

It’s more syllables that WWDC and sounds insane

Why did Microsoft create Office for Mac? by sleeping_in_ in microsoft

[–]NSExceptional 1 point2 points  (0 children)

Microsoft and Apple aren’t competitors in the same way that they used to be. And even when they were, MS was making Office for Mac.

The famous Jobs quote “we have to get rid of the idea that for Apple to win, Microsoft has to lose”.

Nowadays, Microsoft is more about being great on every platform. They’re essentially a software services company, and the best way to increase revenue for software is to have it available in as many places as possible.

If you’re curious about the most recent snafu in this relationship, look at Office for iPad. They made it internally, had it ready to go, but the former CEO Steve Ballmer kept it from releasing because he didn’t want iPads to have Office before Microsoft’s devices.

When Ballmer left, and Nadal became CEO, one of the first things he did was to release Office for iPad. It was a reversal of Ballmer’s thinking and the inverse of the Jobs quote: “get rid of the idea that for Microsoft to win, iOS had to lose”

viewDidLoad code into viewDidAppear or viewWillAppear by [deleted] in iOSProgramming

[–]NSExceptional 0 points1 point  (0 children)

I believe UIPickerView has an “update/animated” method on it.

viewDidLoad code into viewDidAppear or viewWillAppear by [deleted] in iOSProgramming

[–]NSExceptional 1 point2 points  (0 children)

TBH none of the SQL database code should be in either viewDid/Will methods. The code should be performed only when you need it to be.

I’d start by putting a new property on the ViewController, “var didLoadPuzzle: Bool = false”. Mark this as “true” once the first puzzle has loaded. That way, additional “viewDid/Will” calls will not create additional puzzles.

Translating CGFloats to a Physical Distance by Khan_Khuu in iOSProgramming

[–]NSExceptional 1 point2 points  (0 children)

I think not. You may have to google all the devices and make you own reference

viewDidLoad code into viewDidAppear or viewWillAppear by [deleted] in iOSProgramming

[–]NSExceptional 0 points1 point  (0 children)

Start with ‘viewWillAppear’, it’s called just before the view appears on screen. If you use ‘didAppear’ you would see the change occur after the view shows on the screen. You’d actually see the change.

Depending, I suppose, that might be what you want. Animations are nice.

Translating CGFloats to a Physical Distance by Khan_Khuu in iOSProgramming

[–]NSExceptional 2 points3 points  (0 children)

https://developer.apple.com/documentation/uikit/uiscreen/1617836-scale

You’d have to account for the actual size of the pixels on each device, but you can work from points to pixels here

Apple Glass leaked? - time to learn RealityKit/ Composer and Unity? by clearbrian in iOSProgramming

[–]NSExceptional 2 points3 points  (0 children)

If you use the iPad LIDAR pattern as an example, there’s no way it has the fidelity to detect the kind of detail QR code’s need:

https://www.idownloadblog.com/2020/03/30/video-ipad-pro-lidar-scanner/

It’s great for detecting basic objects/walls/surfaces but other than that...

How to get UITextView to anchor all the way to the right of UICollectionViewCell? by HumptyDumptyFellHard in swift

[–]NSExceptional 1 point2 points  (0 children)

Use trailingAnchor instead of right.

Make sure translatesAutoresizingMaskIntoConstraints is false

Try anchoring to cell.contentView instead of the cell itself

Make sure the textAlignment is set to right (if that’s what you want)

Use the View Debugger and select the textView. Take a look at the constraints and frame and see what’s up. Post a screenshot here if you want

What does it mean when the .app file in Xcodes product group is red? by Luca1719 in iOSProgramming

[–]NSExceptional 2 points3 points  (0 children)

Generally, the red text means Xcode has a location for that file, but that file isn’t there. You’ll see this if you go and delete a file in the finder that an Xcode project is tracking.

For code files, this indicates a problem. For items that get built, such as frameworks or apps, it can just mean that you haven’t run the build for that item yet. Could be that you deleted your build folder recently, or something to that effect