Post

Replies

Boosts

Views

Activity

Reply to How can I divide the small number by the large number?
It is logical: you get an Int64, hence A/B is 0. But if you compute: print(1000*aNumber/bNumber) Then you get 424 And now divide (as Float) by 1000 let cNumber = 1000*aNumber/bNumber // Int64 print(Float(cNumber) / 1000) and get 0.424 You can also go to Double: let aNumber : Int64 = 106581282816 // -> Int64 (freeDiskSpaceInBytes) let bNumber : Int64 = 250790436864 // -> Int64 (totalDiskSpaceInBytes) let c = Double(aNumber) / Double(bNumber) print(c) yields 0.42498144725429654
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’21
Reply to Outlook Crashing
so please fix this issue at earliest. Developers here can't do anything about it. Remember that this forum is not an official Apple reporting channel. You'd better either or both: contact Microsoft: thay may need to updtae Outlook file a bug report.
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’21
Reply to How to draw UIBezierPath with different colors?
Do you want to change within the same BezierPath ? I thought it was not possible: https://stackoverflow.com/questions/33108315/how-to-create-two-strokes-of-different-color-using-one-uibezierpath?rq=1     Or with multiple paths : https://stackoverflow.com/questions/6431005/how-to-draw-multiple-uibezierpath-with-different-colors-in-a-uiview
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’21
Reply to Required iOS version in Appstore is lower than my Xcode iOS Deployment Target
The target also says: Deployment Info: iOS: 13.0, like the project Do you mean in your case you have already set it to 13.0 ? And Project is also at 13.0 Did you test your app on iOS 11 or 12 ? Does it work (may be not with all features but without crash) ? I'm not sure, but the info on Appstore may be computed after code analysis (by XCode), to check that it is compatible with 11.0. In that case, you cannot influence it, unless to have some API in code that do not exist before 11.0. See older threads https://developer.apple.com/forums/thread/68220 https://developer.apple.com/forums/thread/678691 What I do is to explicitly say in the app Description (on Appstore submission) that it best run (or even should run) on iOS 13 or above: Works on iOS 13 and above.
Aug ’21
Reply to Trouble with iOS App Planning
When is user score updated ? When player plays (then he/she's not in background) ; the ranking may change, not the score. in other cases ? Is that a correct understanding ? Did you consider: keeping leaderboard on your server and update it there pushing notification when score / ranking change reload from server when user returns from background, in case he/she missed notification
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’21
Reply to safe area - not understanding what I am seeing
I then embedded a tab controller and added a few more storyboards. I suppose you mean some more ViewControllers, not storyboards. One storyboard not connected yet. Which VC is not connected yet ? It is pretty hard to understand your description. What do we see in viewSafe1 and viewSafe2: the storyboard or the HMI on device or simulator ? What is the original storyboard I guess you mean original VC. But you should name them precisely: tabBarController First tab connected to a NavController, the NavController connects to FermentationController viewSafe1 is the bottom of NavController. Exact ? Are there other VC in the navigation ? Second tab connects to HELP VC What is viewSafe2 showing ? Could you show the complete storyboard so that we can understand all the links between VC ? PS: it is easy to attach images here:
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’21
Reply to Many errors / non-existing API's etc. in this session
May be those API (which were for beta iOS I guess) evolve rapidly and the session are no more up to date. But you could file a bug report at least to get a warning on the session presentation.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Barcode Scanner and write to Excel
Scanning the barcode is the easy task. Do you want to write to an existing document (where in doc ? - Excel files format is really complex) or create a new one. You could write to a file (in SYLK format for instance) and import this in Excel doc.
Replies
Boosts
Views
Activity
Aug ’21
Reply to How can I divide the small number by the large number?
It is logical: you get an Int64, hence A/B is 0. But if you compute: print(1000*aNumber/bNumber) Then you get 424 And now divide (as Float) by 1000 let cNumber = 1000*aNumber/bNumber // Int64 print(Float(cNumber) / 1000) and get 0.424 You can also go to Double: let aNumber : Int64 = 106581282816 // -> Int64 (freeDiskSpaceInBytes) let bNumber : Int64 = 250790436864 // -> Int64 (totalDiskSpaceInBytes) let c = Double(aNumber) / Double(bNumber) print(c) yields 0.42498144725429654
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to iOS 15 beta 6 Safari breaks Tiktok.com
Thanks for reporting, but the Developer forum is not the right place to report about a third party app, it is not a developer issue. You'd better file a bug report on Safari or maybe contact directly the app supplier.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Outlook Crashing
so please fix this issue at earliest. Developers here can't do anything about it. Remember that this forum is not an official Apple reporting channel. You'd better either or both: contact Microsoft: thay may need to updtae Outlook file a bug report.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Required iOS version in Appstore is lower than my Xcode iOS Deployment Target
You have 2 places where the version is indicated in Project: that's the deployment target in Targets: that's the deployment info reported in Appstore. Probably, you have to update in Targets as well.
Replies
Boosts
Views
Activity
Aug ’21
Reply to How to draw UIBezierPath with different colors?
Do you want to change within the same BezierPath ? I thought it was not possible: https://stackoverflow.com/questions/33108315/how-to-create-two-strokes-of-different-color-using-one-uibezierpath?rq=1     Or with multiple paths : https://stackoverflow.com/questions/6431005/how-to-draw-multiple-uibezierpath-with-different-colors-in-a-uiview
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Required iOS version in Appstore is lower than my Xcode iOS Deployment Target
The target also says: Deployment Info: iOS: 13.0, like the project Do you mean in your case you have already set it to 13.0 ? And Project is also at 13.0 Did you test your app on iOS 11 or 12 ? Does it work (may be not with all features but without crash) ? I'm not sure, but the info on Appstore may be computed after code analysis (by XCode), to check that it is compatible with 11.0. In that case, you cannot influence it, unless to have some API in code that do not exist before 11.0. See older threads https://developer.apple.com/forums/thread/68220 https://developer.apple.com/forums/thread/678691 What I do is to explicitly say in the app Description (on Appstore submission) that it best run (or even should run) on iOS 13 or above: Works on iOS 13 and above.
Replies
Boosts
Views
Activity
Aug ’21
Reply to Test
What can we do to help ? Post a comment ? Here it is.
Replies
Boosts
Views
Activity
Aug ’21
Reply to Test
What else can we do to help ? Answer the question ? Mark the thread as watched (what I did) ?
Replies
Boosts
Views
Activity
Aug ’21
Reply to NSTreeController insertObject Failing
Did your customer have the problem before or recently, after updating to 11.4 ? On the video, she doesn't click on the +button but on the button on the left. Is it OK ? What is this button doing ? Is addGroup IBAction associated to this button or +?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Trouble with iOS App Planning
When is user score updated ? When player plays (then he/she's not in background) ; the ranking may change, not the score. in other cases ? Is that a correct understanding ? Did you consider: keeping leaderboard on your server and update it there pushing notification when score / ranking change reload from server when user returns from background, in case he/she missed notification
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Crash when presenting action sheet on iPad
You need to provide the position. Code is usually like this (in this case, popover appears when tapping a button: if let ppc = sheet.popoverPresentationController { ppc.sourceView = aButton as UIView ppc.sourceRect = (aButton as UIView).bounds }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to safe area - not understanding what I am seeing
I then embedded a tab controller and added a few more storyboards. I suppose you mean some more ViewControllers, not storyboards. One storyboard not connected yet. Which VC is not connected yet ? It is pretty hard to understand your description. What do we see in viewSafe1 and viewSafe2: the storyboard or the HMI on device or simulator ? What is the original storyboard I guess you mean original VC. But you should name them precisely: tabBarController First tab connected to a NavController, the NavController connects to FermentationController viewSafe1 is the bottom of NavController. Exact ? Are there other VC in the navigation ? Second tab connects to HELP VC What is viewSafe2 showing ? Could you show the complete storyboard so that we can understand all the links between VC ? PS: it is easy to attach images here:
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Cannot find 'SecondView' in scope in swiftui error NavigationView.
You should have somewhere in this code: struct SecondView: View {     var body: some View { Text("Hi, I am your second View") // Just to display something } }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21