Accessing Images from Xcode "Folder Reference" in Interface Builder UIImageView [duplicate] - iphone

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
iPhone Interface Builder - Moved resources to sub-directory, now IB can't see them!
There is a Folder Reference that contains my images in Xcode. I want to load an image from that image into an UIImageView inside of Xcode rather than programmatically, so I can visually design the interface.
Not only do the images in that folder not appear in the Image View->Image drop-down menu in Interface Builder, the images don't show up when I manually type in the path.

Try putting the images into the Resources folder in Xcode instead of your folder reference. Also, make sure the images have been added to the target from which you want to be able to access the images. To do this:
Select the image in the Groups & Files column in Xcode
Right-click on the image and select Get Info
In the Info window that comes up, select the Targets tab
Check the boxes next to the targets that you need to be able to access this file from

Related

Launch Screen Localized Image not rendering

Problem: The Launch Screen Image is either not rendering (white space where UIImage should be), or not being localized.
My project is set up to load the LaunchScreen from Launch.storyboard via the target's General configuration.
Some facts:
XCode 7.3
Multiple Targets with unique Launch.storyboards.
Tried with two images one was a localized Image.png file (in resources, not in .xcassets), the other was 2 unique image sets in
.xcassets one named "image_en" the other "image_fr".
Some things I tried:
Cleaning the project, resetting the simulator, restarting xcode,
deleting the app's DerivedData.
Created a new Master-Detail project and localized the LaunchScreen.storyboard file. Then added
image_en in en.lproj/LaunchScreen.storyboard and replaced the image
in the fr.lproj/LaunchScreen.storyboard with image_fr .xcassets files
this solved the image not loading problem, but the image was still
not localized.
Created a new Master-Detail project and localized the LaunchScreen.storyboard file. Then I localized the Image.png and added it to the LaunchScreen. This image appeared, but wasn't localized.
Question: Why is a black void appearing in the Launch Screen localized Image.png in my original project? && is this an xcode bug or am I doing something wrong?

How to set small image symbol in application's name under Application icon? [duplicate]

This question already has an answer here:
Additional Icon in App Name/Lable
(1 answer)
Closed 9 years ago.
I had install the ipad application as shown in image. And there's raise a question, that how to set special sybolic application name with image ? as shown in image. It will be good to know how to make it.
Thanks,
K.D
i just study it and got the Solution at your Info.plist file --> BundulDisplayName-->DoubleClickOn Right-side at as bellow Image:-
Now just Clear ${PRODUCT_NAME} And select Edit at upside Tool bar like bellow image:-
then now you can see the window like:-
Now Drag symbol from characters windows to BundulDisplayName when you put this special Symbol then put name of display you want of app then again drag second time same process after name put second symbol.
that's it now save and run your Project your icon look like:-
hope you getting you want :)

How to reuse UIControl from iPhone xib to iPad xib

I am converting my application into Universal, So I have created iPad xib with ~ipad.xib extension. Now I want to use all the old UIControls used in iPhone.xib in iPad.xib without recreating and connecting, Is there any way to reuse it? I have checked in one SO question he mentioned copied and used it in iPad. How to do it?
First take back up of your application.GO to your app target section and right click there u will get three option like Duplicate, Delete, Project Editor Help....Now Select Duplicate it will show alert like below image. Now select "Duplicate and Transition to iPad".Xcode will generate all xib's for iPad with connections.Copy all xibs of iPad to original application.
just select all controls make copy & paste in new .Xib .

Remove unnecessary images from xcode project

I have lots of images in my xcode project for iPhone application. i have changed some of images in last 2-3 version but now i want to remove unnecessary images from that.
I tried ctrl + Shift + F to find image name in whole project but i am not able to sure that i am using images through xib(interface Builder) or not.
so how to find images are in use through xib file or in project or let me know if you have any other trick for this.
Try Slender, it's designed just for that :
http://itunes.apple.com/us/app/slender/id493656257?mt=12

Images in Interface Builder when using MonoTouch

I'm new to MonoTouch and iPhone development. I have my images (PNG) in a resources folder in MonoDevelop, however if I want to set the image property for a button in Interface Builder, how do I do that? It's always a blank dropdown. Do I need to use XCode to access the XIB file and then somehow embed the button image file I'll need in it?
This is a known limitation of MonoDevelop and Interface Builder. To add images to an XIB in Interface Builder they must be part of an XCode project, which of course coming from MonoDevelop they're not.
To achieve what you're trying to do you will need to set the image via code, and ensure the build action of your image is set to Content. To do this, simply right click your image inside MonoDevelop, and select Build Action > Content.
On your view with the button on it, create an outlet in Interface Builder for your button, hook it up, then from code to set your image, you just need to use the .FromFile("path/name") method of UIImage.
UIImage buttonImage = UIImage.FromFile ("resources/image.png");
myButton.SetBackgroundImage (buttonImage,UIControlState.Normal);
That's off the top of my head, but I think that should do it.
You can manually set the image in Interface Builder, but it wont show up until run time. The image name can include a path, e.g. "images/settings.png".
All solutions given here are completely wrong and misleading. All you need to do, is place your images in the Resources folder (on the project root), and add your images to this folder. After adding files to this folder, mark all files and make sure their build action is set to BundleResource.
I also needed this to work, here is a workaround I found.
You need to create a dummy xcode project. Place it in the same folder as your project.
Add all your xib files and image files to that xcode project by dragging them in when the project is opened in xcode. Now you will be able to see the preview of the images.
The image files must be in the same folder as the project file and xcode must be opened with the dummy project while the interface builder is opened.
Not great - but solves the issue for now.
Here is a sample project I have created.
For this issue to be resolved on the MonoDevelop side - some inter-process communication code needs to be created, I think that a good starting point will be looking for "PBXProjectWatcherServerConnection-3.1.2" in google.