Apple Watch Images not showing on simulator - objective-c

I am working with the apple watch and I would like to just simply set an image in the storyboard. It is a png file and I set it in the storyboard, but it doesn't show up in the simulator. I have tried all of the aspect and fitting options. I believe the view is called a wkinterfaceimage. I have also tried adding programmatically and that does not show up either. Hidden is not checked. Any ideas of what I might be missing?

If you have your image included as a file in your app's bundle select the file, choose File Inspector and add the target under Target Membership:

Related

User-defined setting in Storyboard

I have a LaunchScreen.storyboard that has an Image View and will display an image whenever the app is launched. However, I have a different launch image for each Scheme that I define in the project. I have defined a user-defined setting that holds a different image asset for every scheme. My question is, how do I make use of this setting in the storyboard?
I've also been looking for this feature for a long time but I don't think Asset Catalog supports it. Out of the box, Asset Catalog only supports changing the App Icon and Launch Images (not Launch Storyboard) based on build configuration. See attached:

Cordova mac default window height width

I just downloaded Cordova for mac from https://github.com/apache/incubator-cordova-mac.
I haven't made any changes, so I just load it up in Xcode and hit run, but the first thing I would like to do is specify the window size. I'm not very conversant with xcode and can't find references to the window size, I can't find any nib files either.
How would I set the window size?
Edit I used the method described at How to set NSView size programmatically? in my contentView implementation file.
Cordova runs full screen, and depending on the size of the splash screens included in the project will scale to all respective devices.
If you want to embed Cordova in your application you have to look here: http://docs.phonegap.com/en/2.4.0/guide_cordova-webview_index.md.html#Embedding%20WebView

Images in NSButton not showing up?

I've tried that several times, and it seems there is some bug with that (Xcode 4.3.3 - OS X 10.7) :
Put an NSButton in Interface Builder
Set it to 'Image Only'
Drag'n'drop a system icon (e.g. NSAddTemplate)
But the icon fails to show (while I'm perfectly able to see icons when they're not system icons, but added by me).
Any ideas?
I've just tried, it works in a weird way.
Try to set image and alternate in the NSButton inspector.
Pick the images from the drop-down menu directly instead of drag-dropping it.
It works but it's just a workaround...
Alternate answer: Make sure the image files are included in the Copy Bundle Resources phase for your target (especially if you have multiple targets in your Xcode project). There is no build-time error or warning if you specify an image that is not in your bundle. (There is a runtime warning).

Image load on iOS simulator but not on iPad

The title pretty much describe my problem. I have a UIButton on which I applied a .png background. The .png load fine on the iOS simulator but not on the actual iPad. Any hints as to why it does that ?
EDIT:
When the view with the button in question loads I get this error message in the console
Could not load the "fosse.png" image referenced from a nib in the bundle with identifier "ca.polymtl.PolyPuttZE"
Try doing this.
In Xcode press:
Command+Shift+K and press Yes.
Command+Shift+Alt+K and press Yes.
The try building, running.
Also, check if the image has correct targets (you can check by clicking on the image in Xcode and then in Inspector you'll find build targets).
I've solved the problem. Turns out that the image wasn't encoded as a png even if it had the proper extension. So I juste opened it with gimp and exported it as a PNG.
Click on your project. Then go to the Build Phases tab and ensure that the file is in the Copy Bundle Resources list.
If not then add it...

How to change image displayed on image browser?

I want to build an application that when the folder is drag and drop to my app, it will retain path and show custom image. so here is the screen shot of my app.
So as you can see in the screen shot, when i drag and drop folder on my app it will display the folder with the custom frame. So the problem is i want to change the folder icon shown in my app to other picture. I am still new to cocoa programming so i hope anyone can point what code to use to change the folder icon in my app. anyway i am using xcode 3.2 to build my app.
You need to point to a directory that contains images. if you point to a directory that only contains directories, this is what you get.