IOS home screen icons: where put and what size?

I figured out that the images needed to be in the directory where the “core” wp folders are, ie. the public_html, or in whatever sub-directory that contains the wp-admin, wp-includes, wp-content, etc. I had been placing them in the theme root and nothing was happening. Moved them to the public_html and they started showing up! … Read more

How to play a sound using Swift?

Most preferably you might want to use AVFoundation. It provides all the essentials for working with audiovisual media. Update: Compatible with Swift 2, Swift 3 and Swift 4 as suggested by some of you in the comments. Swift 2.3 Swift 3 Swift 4 (iOS 13 compatible) Make sure to change the name of your tune as well as the extension. The file needs to … Read more

Prepare for Segue in Swift

This seems to be due to a problem in the UITableViewController subclass template. It comes with a version of the prepareForSegue method that would require you to unwrap the segue. Replace your current prepareForSegue function with: This version implicitly unwraps the parameters, so you should be fine.

Alert”Developer tools access needs to take control of another process for debugging to continue.Type your password to allow this.”

The first time you launched XCode, it probably asked you if you wanted to enable Developer Mode on this mac. If you accepted, then it asked you for your password, and you stopped getting this kind of warning. Chances are good that you declined, and now it has to explicitly ask you for permission every … Read more

Download Xcode simulator directly

Clicking on Download in Xcode didn’t do anything – the progress bar did not progress (does that make it a regress bar?). This is what worked for me: Open Xcode, open preferences, go to the Components section. Open the Console App, clear the console. Go back to the Xcode preferences. Start the simulator download, then … Read more

Remove alpha channel in an image

Assuming you don’t have another image editor, then you can open it in Preview on your Mac, and use the Export option to resave it in a different format- to ensure you get rid of the alpha channel, it might be best to export to JPG (best quality), then open that and export it as … Read more