Post

Replies

Boosts

Views

Activity

Reply to All of my programmatically created buttons work except for one
The code as shown cannot possibly be triggering the action for button #11. You must be running some different code. Anyway, I would check the view debugger to see if there’s some other view getting the touches in front of the button, and make sure your button’s frame is what you expect. The default for clipsToBounds is false, so if the frame is messed up a view can have all of its contents visible outside its bounds but it will not receive touches.
Jul ’20
Reply to Constraints Issue with alert popover
Not sure, probably a relatively harmless iOS bug. But you should be aware that a UIAlertController’s view hierarchy is considered private API. If you need a customized alert you need to roll your own view controller. Modifying UIAlertView directly has burned many developers in the past as the underlying implementation is subject to change at any time. I’m sure the same will happen with UIAlertController eventually. From the documentation: “Important - The UIAlertController class is intended to be used as-is and does not support subclassing. The view hierarchy for this class is private and must not be modified.”
Jul ’20
Reply to Why do they behave differently from each other ?
Garbage in, garbage out. I believe that duplicate items/sections *is* the point. Frankly I’m surprised the API calls don’t throw an exception when presented with such invalid input. Anyway, maybe it’s due to how your identifiers are hashed? You’re using numbers in one case and strings in the other. If you use the same type of identifier, does that affect anything?
Jul ’20
Reply to Expand UITableViewCell (custom) on tap - random extra cells get selected
Well, there’s probably something going on in the code you’re not showing. Perhaps you have a gesture recognizer or target/action set up somewhere that’s being attached to the cell or a subview but never removed when the cell is reused. Perhaps your toggle method is being called twice, causing it to appear as if nothing has changed. A simpler, complete example (small enough to post all the code) would be easier to diagnose.
Jul ’20
Reply to Install iOS 13.4.1
Normally for old iOS versions the only option is to find a device on the used market that is still running that specific version. But it’s usually a waste of effort to try and support all point releases within a major release. Approximately everyone updates to the latest available, so for devices limited to iOS 13 (are there any? I don’t know) that would be 13.6 at the moment.
Jul ’20
Reply to Thread 1: breakpoint 1.1
“Breakpoint 1.1” sounds like the debugger is stopping at a breakpoint you’ve set. Is there a blue arrow in the gutter on the left of your code where the line numbers are? That’s a breakpoint. You can drag it away to get rid of it. Or manage them using the breakpoints navigator in the left sidebar.
Jul ’20