Do you need all the complication images for a watchOS extension? - apple-watch

I'm making a watch extension for my app. On the Watch Extension folder, there is an Assets.xcassets folder with a complications subfolder with a bunch of complications, each one with multiple spots for images.
My extension is very simple. I just want the logo to show for all complications. Should I just delete it? Leave it empty? Or do you I actually have to make all those images?
On the Watch folder, there is another asset folder with the AppIcon. I added all the sizes for the icon there.

Related

App icon not showing up on iPhone 5 device during testing

I have a 120x120 icon image that's working fine on emulators - however when I try it on my device, the icon doesn't show up. Any thoughts?
I figured it out. This was actually really annoying. So the UI designer had simply renamed his .psd files with .png and xcode thought this was fine. However, renaming the .pngs isn't going to automatically make them real .pngs. The way I solved this was going to mac preview and exporting the files to the PNG format.
Sometimes some of the images get cached by the OS.
Delete your app completely from your mobile device (press and hold, then delete the app)
Turn off your device and turn it on again.(This ensures that the cache gets cleared)
In xCode, clean the project and rebuild.
Load the software again you your device.
You should be able to see your icon as long as its properly added to your project.
Drag your app over another app to group both into a folder. Then drag the app out of the folder.
Check your info.plist file. Make sure the icon entry looks something like this (use your own image file names of course):
If you see another "Icon already includes gloss effects" row outside, remove it.
It is not uncommon not to see your app icon on the device. However, when your app is being uploaded to the App Store, everything will be fine.
Is your iOS device running iOS7? If not, you will need to include 57x57 and 114x114 icons as well. See https://stackoverflow.com/a/18737063/1646862 for icon sizes apple requires. It is always good to include all icon sizes you may need in your iOS bundle.

iOS (iPhone) clear images from application cache

I have problem with images on my iPhone when I delete it. I clear image from disk, I remove reference in XCode, I delete app from my iPhone and when I run app again the image is still there.
Any suggestion how I can completely remove image from my project?
Lit sounds like you are adding images to your Xcode project and copying them to the app. Then you removed them from Xcode and observe that they aren't removed from the app.
In this case, clean the project.
Xcode isn't very good at removing files from an already built app when the source file is removed from the project.

visual assets in iphone app / xcode

I am new to ios dev, and wondering what are best practices to manage visual assets that are integrated into the app in xcode. Do people have copies of each UI for each form factor, including orientation? resize programmatically? other ways? I am doing all my UI programmatically but no idea whats the best way to manage the assets, meaning, the actual PNG files.
Whenever possible, I like to use resizable images. UIImage has a method resizableImageWithCapInsets:resizingMode: which takes a condensed image and stretches the center row, column, or single pixel as wide or as tall as you want it. This is how iOS creates a lot of its buttons, including the buttons seen in action sheets.
If you need to have separate assets for orientations, I would recommend using suffixes on the file name. So you might have Button-Portrait.png and Button-Landscape.png. You could also add a category on UIImage that takes an image name, detects the current orientation, and gets the actual image file.

Why can't I view PNG images within an iOS application's bundle?

When looking in a compiled .app bundle, I see PNG images used as resources for this application. However, when I try to view them, they come up blank.
Why can't I view these PNG images from compiled iOS apps? Is there a way to do so?
You should not use other people assets without their permission.
You are running into the fact that PNG files are optimized during the file copy phase of an iOS build. You have to revert the optimization to view them.
pngcrush -revert-iphone-optimizations <filename>
Apple has published a Tech note about Viewing iPhone-Optimized PNGs.

iPhone App finds and loads image not inside .app

I've taken an existing iPhone app, and stripped it down to become a "New App" starter project. It has a loading screen, which references an image called "Loading_Background.png". But when I go to the .app and do "Show Package Contents", I don't see any image with this name. There isn't an image with this name in the Copy Bundle Resources in the project, either.
How is the iPhone finding and loading this non-existent image? Is it somehow finding that image in the original application which is installed on the same iPhone?
Try a clean build (and also delete the app off the iphone) sounds like you are getting something from a past build.
Possibly. If you keep the same Bundle ID, your iPhone can confuse the two apps.