Post

Replies

Boosts

Views

Activity

Reply to Swift program
What do you expect to learn if you just ask others to do the work for you ? The right use of this forum is to explain first what you did Then the problem you have. Have you an idea of the algorithm to do this ? That's the first step, before coding.
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to NSPrintInfo design report
Of course I have code(s) for PrintView. But the content is very specific to the different apps. And too long to post here. If you post an email address, we could continue discussion through this mail channel.
Topic: UI Frameworks SubTopic: AppKit Tags:
May ’21
Reply to How can I pass a UILabel as a URL in Swift?
 despite re-adding the segue  Do you have a segue from the button and an IBAction ? That cannot work. IBAction will not be called. So you have to choose, either the segue or the IBAction. So remove the segue and test again (check the IBAction is connected to the button: you should see a black circle at the left of @IBAction func) And of course change the code as I told you.
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’21
Reply to How can I pass a UILabel as a URL in Swift?
with this code, firstURL is nil, because itemOneURL is a UILabel! not a String. Thus, URL(string:"\(firstURL)")! as URL is nil as well So change as: let firstURL = itemOneURL.text // always a String? as? String You should also make your code more robust: @IBOutlet weak var itemOneURL: UILabel! @IBAction func viewItemOne(_ sender: UIButton) { // itemOneURL.text is always a String, but may be nil if let firstURLString = itemOneURL.text, let url = URL(string: firstURLString) { UIApplication.shared.open(url, options: [:], completionHandler: nil) } } For the future: when you have such a problem, just add some print statements to understand what's going on. In your initial code, if you added at line 6: print("firstURL", firstURL) you'd have seen immediately what the problem was.
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’21
Reply to IOS 14.5 Creating Signal & 4G Loss
Does it occur when you move or also when you stand still ? Such problems were reported on iPhone 12, when switching between reception towers: https ://www.forbes. com/sites/gordonkelly/2020/12/01/apple-iphone-12-pro-max-iphone-12-mini-4g-5g-cellular-signal-problems-iphone-11-pro-max-upgrade/?sh=38ff9832123b
Topic: App & System Services SubTopic: Core OS Tags:
May ’21
Reply to Re-Add iPhone X/XS/11 Pro "View As" for Xcode 12.5
Where do you see it is the same size ? I think there is a small difference (Mini is 4% smaller in each direction): Model          Logical W  Logical H   Physical W    Physical H    PPI Retina Factor iPhone 12 mini    360       780         1080         2340        476     3 iPhone X          375       812         1125         2436        458     3 Complete references here : https ://ios-resolution .com
May ’21