Post

Replies

Boosts

Views

Activity

Reply to How do you get the cursor to appear programmatically in a custom UITextInput with UITextInteraction?
Hi Rick, I may have solved this! Try this: Add the UITextInteraction to your view. Iterate view.interactions. One of them will be a UITextSelectionDisplayInteraction that was added by the UITextInteraction. When you call becomeFirstResponder to present the keyboard, also set activated = true on the UITextSelectionDisplayInteraction. The cursor will appear! Note that has only been tested for about 30 seconds so far! You may be interested to know that I found this while trying to solve the related problem of how to avoid a "ghost" edit menu being left when I call resignFirstResponder; see https://developer.apple.com/forums/thread/751307 It may be worth not using UITextInteraction, and instead using UITextSelectionDisplayInteraction and UIEditMenuInteraction (etc?) directly, with your own logic to replace the glue provided by UITextInteraction.
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’24
Reply to Best way to determine region?
You don't need to do anything in your app. You can either: Use AWS CloudFront, which will cache your files in regional edge locations. This works, provided that caching is effective i.e. you have sufficiently-frequent downloads that your content is in the cache. Use Route53 DNS with Geolocation or Geoproximity routing. (I've not done this. I have a feeling that it may be difficult to do this with HTTPS to S3.) You might also consider Cloudflare R2 as an alternative to S3 - it's cheaper.
May ’24
Reply to App rejection for use of alternate icons
Well... call me a pessimistic old cynic, but I think that the advice you get over the phone from App Review is also "speculative at best". I've only tried that phone consultation thing once, and the guy was friendly and sounded like he knew what he was talking about - so I did what he said, and I still get rejected. It was almost like an "AI" conversation - convincing and grammatically correct, but fundamentally nonsense. As I said, good luck!
May ’24
Reply to Fraud: trial period without the possibility of canceling a subsequent paid subscription
I believe the minimum free trial period is 3 days. If you're really seeing a 1 day free trial offered, then that's hard to explain. Did this happen to you personally, or is this something that you've read about elsewhere? "How to get compensation" - google "app store refunds". There is a web page with a "report a problem" button. Exactly what happens next may depend on where you live.
May ’24
Reply to App rejection for use of alternate icons
Does choosing the alternate app icon in app settings not count as "within the app" ? What do you mean by "app settings"? Do you mean that you've usd a Settings.bundle to add settings for your app to the main Settings app? If that is what you mean, then that clearly isn't "within the app". Having said that, it seems very pedantic that they would reject you for doing that. So... yeah, actually, that's exactly what they would do! I suggest that you move the settings inside the app and see what happens. If you're unsure if they have correctly understood how to change the icon - which is possible, though I think unlikely - then send them a screen capture video showing how to do it.
May ’24
Reply to Where can I read the help for all Do Shell Script commands?
Is it possible to see all possible commands using "man"? No. There is man -k for a keyword search. You can find linux man pages online with complete lists of commands, e.g. at https://linux.die.net/man/1/ ; that is of limited use because (a) the available macOS commands differ, and (b) the list is too long to find anything in practice. I’m unsure what to recommend for learning shell programming. I still have a copy of Kernighan & Pike on my bookshelf - it is 30 years old, and while it is still mostly accurate I doubt that it will teach you what you want to know.
May ’24
Reply to iOS 17.x not installed
Thanks for posting the link. It seems that something called “xprotect” decided it was malware and deleted it. FFS Apple. The linked instructions suggest that it really is necessary to re-download it, i.e. it hasn’t just been quarantined or something. Is that right? How do I turn off this “xprotect” feature?
May ’24
Reply to How do you get the cursor to appear programmatically in a custom UITextInput with UITextInteraction?
Hi Rick, I may have solved this! Try this: Add the UITextInteraction to your view. Iterate view.interactions. One of them will be a UITextSelectionDisplayInteraction that was added by the UITextInteraction. When you call becomeFirstResponder to present the keyboard, also set activated = true on the UITextSelectionDisplayInteraction. The cursor will appear! Note that has only been tested for about 30 seconds so far! You may be interested to know that I found this while trying to solve the related problem of how to avoid a "ghost" edit menu being left when I call resignFirstResponder; see https://developer.apple.com/forums/thread/751307 It may be worth not using UITextInteraction, and instead using UITextSelectionDisplayInteraction and UIEditMenuInteraction (etc?) directly, with your own logic to replace the glue provided by UITextInteraction.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Best way to determine region?
You don't need to do anything in your app. You can either: Use AWS CloudFront, which will cache your files in regional edge locations. This works, provided that caching is effective i.e. you have sufficiently-frequent downloads that your content is in the cache. Use Route53 DNS with Geolocation or Geoproximity routing. (I've not done this. I have a feeling that it may be difficult to do this with HTTPS to S3.) You might also consider Cloudflare R2 as an alternative to S3 - it's cheaper.
Replies
Boosts
Views
Activity
May ’24
Reply to Does UITextInteraction have a way to dismiss the edit menu?
Answering my own question.... When you add a UITextInteraction, a UIEditMenuInteraction gets added automatically. So it's possible to iterate through the view's interactions and find the menu interaction using isKindOfClass, and call dismissMenu on that. It's a bit of a hack, but I've done much worse and it seems to work.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to App rejection for use of alternate icons
Well... call me a pessimistic old cynic, but I think that the advice you get over the phone from App Review is also "speculative at best". I've only tried that phone consultation thing once, and the guy was friendly and sounded like he knew what he was talking about - so I did what he said, and I still get rejected. It was almost like an "AI" conversation - convincing and grammatically correct, but fundamentally nonsense. As I said, good luck!
Replies
Boosts
Views
Activity
May ’24
Reply to App rejection for use of alternate icons
if you're confused about the rejection / review of your app, you can simply request for a call and someone will reach out via phone call to explain what is wrong and what you need to do. Or alternatively, you can post on this forum and "someone" (two of us actually!) will tell you the very same thing! Do let us know if they eventually approve it - good luck!
Replies
Boosts
Views
Activity
May ’24
Reply to Fraud: trial period without the possibility of canceling a subsequent paid subscription
I believe the minimum free trial period is 3 days. If you're really seeing a 1 day free trial offered, then that's hard to explain. Did this happen to you personally, or is this something that you've read about elsewhere? "How to get compensation" - google "app store refunds". There is a web page with a "report a problem" button. Exactly what happens next may depend on where you live.
Replies
Boosts
Views
Activity
May ’24
Reply to App rejection for use of alternate icons
Does choosing the alternate app icon in app settings not count as "within the app" ? What do you mean by "app settings"? Do you mean that you've usd a Settings.bundle to add settings for your app to the main Settings app? If that is what you mean, then that clearly isn't "within the app". Having said that, it seems very pedantic that they would reject you for doing that. So... yeah, actually, that's exactly what they would do! I suggest that you move the settings inside the app and see what happens. If you're unsure if they have correctly understood how to change the icon - which is possible, though I think unlikely - then send them a screen capture video showing how to do it.
Replies
Boosts
Views
Activity
May ’24
Reply to Where can I read the help for all Do Shell Script commands?
Is it possible to see all possible commands using "man"? No. There is man -k for a keyword search. You can find linux man pages online with complete lists of commands, e.g. at https://linux.die.net/man/1/ ; that is of limited use because (a) the available macOS commands differ, and (b) the list is too long to find anything in practice. I’m unsure what to recommend for learning shell programming. I still have a copy of Kernighan & Pike on my bookshelf - it is 30 years old, and while it is still mostly accurate I doubt that it will teach you what you want to know.
Replies
Boosts
Views
Activity
May ’24
Reply to iOS 17.x not installed
Thanks for posting the link. It seems that something called “xprotect” decided it was malware and deleted it. FFS Apple. The linked instructions suggest that it really is necessary to re-download it, i.e. it hasn’t just been quarantined or something. Is that right? How do I turn off this “xprotect” feature?
Replies
Boosts
Views
Activity
May ’24