Custom folder (group) icons in Xcode's Project Navigation Pan - ios

In the project navigator on the left, I want to give different folders (groups) different custom icons.
For instance, I have the files for my chat module in a folder called Chat. I want to change the icon for that folder to the chat icon that I have in the app. Is there any way I can accomplish this?

I am not sure if it is at all possible and I have not looked into it so this is just an idea, but if it is possible then you probably have to manually edit the project.pbxproj file within the xcodeproj file ([ctrl]+click/right click on the xcodeproj file and select Show Package Contents). It will probably take you a while to understand how pbxproj files work though.

Related

Files disappeared from Xcode project, but still in folder

Morning I opened my xcode project to do some changes, but all files are disappeared. I don't kno why and I haven't any idea how I can return them back. All files are in folder, but can't see them in project navigation. is there any way to put them back to project?
NOTE: Filter in the Filter Bar is OFF.
Right click the project or folder icon in the navigator and select the "Add Files To..." option to add existing files back into a project.

Updating cocos2d in xcode, add kazmath

So I have an existing cocos2d project and wanted to upgrade cocos2d version. I right click on my project in xcode and selected "Add files...." option. Then I choose kazmath folder from the cocos2d extracted folder.
I selected copy items if needed when adding the files to my project. Now the problem is that kazmath library is shown as blue icon in my project and is not able to get referenced. Other source code folders are shown in yellow icon so definitely something is different here.
The screenshot is:
You Selected Create folder references option instead of Create groups option.
Delete folder and add again. make sure you selected Create groups option.
After doing this if still you get error then drag kazmath folders parent folder to header search path window.

How to apply localization without Storyboard

I don't use storyboard or xib for this project (full code)
When I add new localization, it shows no file in the list, and when I press Finish, no folder created.
You need a Localizable.strings file. If you already have that, select the file in the left panel. Then, click the button that should be in the right panel that says "Localize..."
Once you do this, you should be able to add other localizations the way you were trying to.

how to add to the media library in xcode?

I'm a beginning programmer, so sorry if this sounds stupid. I understand that I have to put the image into Xcode through the media library... but where is the media library? I threw the image file into the folder I made when I created the project but it's not showing up. I have the same image in there in 2 formats: PNG and JPEG. Where is the location of the "Media Library"?
What do you mean with Media Library? The pane in Interface Builder on the bottom right? That just lists all the media items that are part of your current project or workspace.
You have to add the images to your project, if you want to use them in your app. The easiest way is to drag them in one of the Groups in Xcode's Project Navigator tab on the left side. Make sure you check your target (this will make Xcode copy the images into your app's resources on compile time).
If you have the png or jpg, first, you need to create an imageset and then restart xcode, it would be available inside the media library.
To create an image set, you need to select the Assets.xcassets in the left navigation pane, and then in the tool bar select the editor -> Add Assets -> New Image Set. Give a name to your image and select render as Template Image.

MainWindow.xib Does Not Show Up in Files Pane After Accidental Deletion

I am using XCode 4.0.2 and I accidentally deleted MainWindow.xib. I used SVN to revert it and I have seen that it is located inside an en.lproj directory. The problem is I can't make it show up on the left pane anymore.
What can I do to make it show up there?
Does the project compile and find the file successfully? If not, have you tried dragging it from Finder into your left pane? And choosing not to copy to directory (if it's already in the right folder in Finder)?

Resources