Post

Replies

Boosts

Views

Activity

Reply to sandbox_extension_consume error
I would try to understand why you get this massage:     "Scoped bookmarks can only be created for existing files or directories". If you are sure you access only valid directories or files, you should file a bug report or contact support to find what the error message is about.
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’21
Reply to Modifying the Y-position of navigation bar isn't possible in iOS 15.1 Beta / iOS 15 simulators
I tested with Xcode 13 on both simulators: iPhone 12 Pro Max iOS 15.0 iPhone 12 Pro Max iOS 4.4 I get the same behaviour. Here is the screen shot for iOS 15: What are your exact test conditions ? Is it on iPad simulator ? I tested on iPad simulator as well, it works correctly. Edit: Really strange: I repeat the test, on the exact same simulator, it doesn't work anymore ! But the above screenshot proves that it worked once.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’21
Reply to DateFormatter vs leap seconds
Where did you get the notion of leap second ? "2016/12/31 23:59:60" is an invalid date format, hence the nil result. Similarly, not leap year in 2021, hence let t1 = f.date(from: "2021/02/29 00:00:00") gives nil But consider the following: let f = DateFormatter() f.timeZone = TimeZone(identifier: "UTC") f.dateFormat = "yyyy/MM/dd HH:mm:ss" // last leap year let t1 = f.date(from: "2020/02/29 00:00:00") // 2020-02-29 00:00:00 UTC // last leap second let t2 = f.date(from: "2016/12/31 23:59:59")! // not nil let t3 = t2.addingTimeInterval(TimeInterval(1.0)) let t3Str = f.string(from: t3) print("Leaped 1 second: ", t3Str) You correctly get: Leaped 1 second:  2017/01/01 00:00:00
Topic: App & System Services SubTopic: General Tags:
Oct ’21
Reply to Modifying the Y-position of navigation bar isn't possible in iOS 15.1 Beta / iOS 15 simulators
Of course I mean iOS 14.4, not 4.4… I still don't understand why it worked once. Another bug ? But documentation says : https://developer.apple.com/documentation/uikit/uinavigationcontroller We cannot change frame: The navigation controller manages the creation, configuration, and display of the navigation bar and optional navigation toolbar. It is permissible to customize the navigation bar’s appearance-related properties but you must never change its frame, bounds, or alpha values directly. If you subclass UINavigationBar, you must initialize your navigation controller using the init(navigationBarClass:toolbarClass:) method. To hide or show the navigation bar, use the isNavigationBarHidden property or setNavigationBarHidden(_:animated:) method. See also: https://developer.apple.com/forums/thread/31500 There was also an interesting discussion on how to hide navigation bar progressively, a la Facebook. Just what you try to achieve. It is in french, but code is in english (objC) ! h t t p s : / / qastack.fr/programming/19819165/imitate-facebook-hide-show-expanding-contracting-navigation-bar They set the frame of self.navigationController.navigationBar but probably in a subclass.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’21
Reply to No such Module Found on line -> "import Cryptokit"
I tested with Xcode 13 and BigSur. No error with import CryptoKit. I also tested in playground, no problem either. Do you get any completion proposal when you start typing import Cr…. ? If not that may mean you had an Xcode installation problem. Xcode12_4 - Catalina Mac Xcode 13 - BigSur Mac. What do you mean here ? Did it work in 12.4 ? Which exact version of Xcode 13 are you using ? Could you show the full beginning of your file (before line 13) ?
Oct ’21
Reply to Cannot Download XCode 13 on Mid 2012 Macbook Pro with Catalina OS
The latest version on Catalina is Xcode 12.4. AFAIK there is now ay to go beyond this.
Replies
Boosts
Views
Activity
Oct ’21
Reply to I'm stuck in review with in-app purchases.
It is safe to increase the build release number for next submit to avoid confusion.
Replies
Boosts
Views
Activity
Oct ’21
Reply to We are getting a grey line in UITableViewCell only in iPhone 12 devices.
We have seen your posts on the topic since a few weeks. It's good to have sent a bug report. You could also contact Apple Support (but they may just tell you to send a bug report !)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Software Update
Which software do you want to update ? iPadOS ? If so, what is your current iPadOS version ?
Replies
Boosts
Views
Activity
Oct ’21
Reply to iOS 15.0 bug
OS 15.0 bug. We are working on correcting it. Please try on a different device.     Is this Apple answer or some site developer answer ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to sandbox_extension_consume error
I would try to understand why you get this massage:     "Scoped bookmarks can only be created for existing files or directories". If you are sure you access only valid directories or files, you should file a bug report or contact support to find what the error message is about.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to CoreData to-Many relationship saving NSSet relationship property
Do you mean this line ?     myList.mutableSetValue(forKey: "groceryItems").add(selectedGroceryItems) Without more context information (what is selectedGroceryItems for instance ?), you should check: "groceryItems" is a valid key in your CoreData selectedGroceryItems is of appropriate class for adding to the set
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Modifying the Y-position of navigation bar isn't possible in iOS 15.1 Beta / iOS 15 simulators
I tested with Xcode 13 on both simulators: iPhone 12 Pro Max iOS 15.0 iPhone 12 Pro Max iOS 4.4 I get the same behaviour. Here is the screen shot for iOS 15: What are your exact test conditions ? Is it on iPad simulator ? I tested on iPad simulator as well, it works correctly. Edit: Really strange: I repeat the test, on the exact same simulator, it doesn't work anymore ! But the above screenshot proves that it worked once.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to DateFormatter vs leap seconds
Where did you get the notion of leap second ? "2016/12/31 23:59:60" is an invalid date format, hence the nil result. Similarly, not leap year in 2021, hence let t1 = f.date(from: "2021/02/29 00:00:00") gives nil But consider the following: let f = DateFormatter() f.timeZone = TimeZone(identifier: "UTC") f.dateFormat = "yyyy/MM/dd HH:mm:ss" // last leap year let t1 = f.date(from: "2020/02/29 00:00:00") // 2020-02-29 00:00:00 UTC // last leap second let t2 = f.date(from: "2016/12/31 23:59:59")! // not nil let t3 = t2.addingTimeInterval(TimeInterval(1.0)) let t3Str = f.string(from: t3) print("Leaped 1 second: ", t3Str) You correctly get: Leaped 1 second:  2017/01/01 00:00:00
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Modifying the Y-position of navigation bar isn't possible in iOS 15.1 Beta / iOS 15 simulators
Of course I mean iOS 14.4, not 4.4… I still don't understand why it worked once. Another bug ? But documentation says : https://developer.apple.com/documentation/uikit/uinavigationcontroller We cannot change frame: The navigation controller manages the creation, configuration, and display of the navigation bar and optional navigation toolbar. It is permissible to customize the navigation bar’s appearance-related properties but you must never change its frame, bounds, or alpha values directly. If you subclass UINavigationBar, you must initialize your navigation controller using the init(navigationBarClass:toolbarClass:) method. To hide or show the navigation bar, use the isNavigationBarHidden property or setNavigationBarHidden(_:animated:) method. See also: https://developer.apple.com/forums/thread/31500 There was also an interesting discussion on how to hide navigation bar progressively, a la Facebook. Just what you try to achieve. It is in french, but code is in english (objC) ! h t t p s : / / qastack.fr/programming/19819165/imitate-facebook-hide-show-expanding-contracting-navigation-bar They set the frame of self.navigationController.navigationBar but probably in a subclass.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Can I measure distance from rear camera to an object?
A similar question was answered some time ago on the forum, with a proposed tutorial. https://developer.apple.com/forums/thread/121374 Hope that helps.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to No such Module Found on line -> "import Cryptokit"
I tested with Xcode 13 and BigSur. No error with import CryptoKit. I also tested in playground, no problem either. Do you get any completion proposal when you start typing import Cr…. ? If not that may mean you had an Xcode installation problem. Xcode12_4 - Catalina Mac Xcode 13 - BigSur Mac. What do you mean here ? Did it work in 12.4 ? Which exact version of Xcode 13 are you using ? Could you show the full beginning of your file (before line 13) ?
Replies
Boosts
Views
Activity
Oct ’21
Reply to Unable to Distribute app.
You should contact Apple support directly (Contact Us link at the bottom of this page).
Replies
Boosts
Views
Activity
Oct ’21
Reply to How to know which developer is respond to review
which developer has responded back to certain user review.  developer in your organisation ?
Replies
Boosts
Views
Activity
Oct ’21
Reply to Text Field doesn't update
I would use await / async as detailed here: h t t p s : / / w w w.raywenderlich.com/25013447-async-await-in-swiftui
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21