Post

Replies

Boosts

Views

Activity

Reply to New to iPhone and apple
These are the Developer Forums - for developers to talk about how to implement code and fix issues they're having. This isn't the place for product support questions. For that you should look for the Apple Support Forums. However, webp is fine to use. If you don't want to use them, just convert them to a preferred format. It makes zero difference.
Topic: App & System Services SubTopic: General Tags:
Apr ’23
Reply to Free Application: In-app Marketing Clarification
Ignore ChatGPT completely; it's not Apple, so anything you get from it will just confuse matters. You already have your answer: 3.1.3(f) Free Stand-alone Apps: Free apps acting as a stand-alone companion to a paid web-based tool (eg. VOIP, Cloud Storage, Email Services, Web Hosting) do not need to use in-app purchase, provided there is no purchasing inside the app, or calls to action for purchase outside of the app. You cannot provide a link to sign-up outside of the app, but there's nothing stopping you providing a link to go to your website's home page. To be honest, anyone looking at your app is probably already aware of you, so they're going to know that the app is a companion/part of the services you provide. Are there any other apps similar to yours? How do they handle it?
Topic: App & System Services SubTopic: StoreKit Tags:
Apr ’23
Reply to After Effects 2020 not starting on MacOS Sonoma Beta; how do I downgrade to Ventura without a backup?
You upgraded your only Mac to the beta of Sonoma without a backup? Oh dear. You could take the time to copy your important data to an external hard drive, reinstall Ventura from the startup options screen, and copy that data back. It'll take ages, and you might miss something, but you'll be back to Ventura. Or - if you don't mind losing everything on the Mac - wipe it and start again. In both cases, turn on Time Machine, and never install a beta on your only device.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’23
Reply to Appointment booking feature in my app
I don't think it's possible to do this in the app, probably because of a privacy and spam reduction policy. Imagine if any app could randomly just post emails with your data in without your knowledge. The mail sheet appears so you know that you're about to send an email. However, you can do this if you have your own server. I'm guessing your Dad has a website for his business? You can write a script that sits on the server, and receives data that your app sends, then sends the email itself using the server's mail app. Something like this: @IBAction func sendConsultationRequest(_ sender: AnyObject) { DispatchQueue.main.async { // Disable the UI, show an activity spinner self.activitySpinner.isHidden = false self.activitySpinner.startAnimating() } // Craft the url to call let url: URL = URL(string: "https://www.website.com/app/sendmessage.php")! let request: NSMutableURLRequest = NSMutableURLRequest(url: url) request.httpMethod = "POST" // Craft the parameters that are going to be sent to the server script let params = ["message": messageField.text!, "customerName": customerName.text!, "customerEmail": customerEmail.text!] as Dictionary<String, String> request.httpBody = try! JSONSerialization.data(withJSONObject: params, options: []) request.addValue("application/json", forHTTPHeaderField: "Content-Type") request.addValue("application/json", forHTTPHeaderField: "Accept") // Call the script, and then re-enable the UI, stop the activity spinner etc. URLSession.shared.dataTask(with: request as URLRequest) {data, response, err in DispatchQueue.main.async { self.activitySpinner.stopAnimating() self.dismiss(animated: true) { () -> Void in } } }.resume() } And the script on the server should be something like this (PHP): <?php $handle = fopen('php://input','r'); $jsonInput = fgets($handle); $decoded = json_decode($jsonInput, true); $to = 'dad@website.com'; $subject = 'Consultation request'; $body = 'From: ' . $decoded['customerName'] . "\r\n" . 'Email: ' . $decoded['customerEmail'] . "\r\n" . 'Message: ' . $decoded['message']; $headers = 'From: app@website.com' . "\r\n" . 'Reply-To: app@website.com' . "\r\n" . // You can change this to the customer's email if you want your Dad to be able to reply directly to them 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $body, $headers); ?>
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’23
Reply to Xcode has two kinds of source tabs. What are they?
It's easy. Let's say you have no tabs open: Single-click a file in the project view and the file is opened into a new tab, with the text italicised. Let's call this a View Tab. If you then select any other file (single-click it), the tab is replaced with that file, and the text is still italicised. Double-click a file in the project view instead, and the tab is replaced with the selected file, but the text is plain, not italicised. You've told Xcode to open this file and leave it open, so let's call this an Open Tab. Similarly, if you have a View Tab and you double-click the tab itself, it becomes an Open Tab. You can change this behaviour in the Settings. Just go to the Navigation tab, and at the bottom, in the "Double-click Navigation" dropdown: "Uses Tab" is the behaviour described above. "Same as click" means every file is opened as a View Tab, i.e. a tabs contents is replaced when you select a new file with a single- or double-click. "Uses Separate Window" opens a file into a new window. "Uses Separate Window Tab" opens a file into a new tab in a new window.
Jun ’23