Xcode 5 doesn't let me adding Icons and Launch Images - xcode

I am using Xocde 5 , in my Phone Project I am working on I am having some problem on adding Icons and Launch Images to my project. I don't use storyboard and asset catalog , so I always delete them after creating a new project.
Usually, when "Don't use asset catalog" is selected in the Launch Images and Icons section in general tab of project settings , I see there's option for adding images for different screen sizes. But currently, I don't get that options. "Don't use asset catalog" is selected here , but there's no other things on that menu and right arrow icon beside that does nothing when I click that. So, It seems there's no way I can add launch images and app icons to my project.
Can anyone give me some hint , how can I resolve that. I have to add Launch Images and App Icons. Thanks in advance for your help.

I have managed to solve it. I have copied Images.xcassets file from another project and added to my project. Then I got the options to add images in the place I mentioned in the attached image in the question. So, I have deleted the images that came from other projects in the asset catalog and add the necessary files there from my project. Now everything is fine.

Another solution might be by adding a 'New App Icon' and/or 'New Launchimage' in the Assets Catalog and then select the created image sets in project settings.

Related

Adding a Sidebar Icon to my FinderSync extension

I'm developing a FinderSync extension based on the following documentation:
https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/Finder.html
I'm failing to add a sidebar icon.
I've followed the steps: Created the .iconset folder and filled it with the requested PNGs. Added the folder to my info.plist etc.
But I don't see any icon in the sidebar on my monitored folders.
Context menu, toolbar button and badges works fine.
What could I be missing? Is there any limitation that the documentation fails to mention? Anything tricky with step 4?
Apparently its indeed extremely important to obey Apple's constraints regarding the icons:
they must be
"monochromatic images that are drawn just using black and
transparency"
To my surprise, when a designer gave me pngs that complied with the mentioned above, everything worked like a charm.
Please comment if you encounter any other difficulty, as the documentation is very lacking.
The documentation mentions several exceptions where your app icon will not replace the folder's icon:
The sidebar icons you provide will replace the default folder icons in the Finder’s sidebar for any of the root folders that your extension is monitoring.
This icon does not replace the icon for any folders contained by your monitored folder.
It also does not replace the icon for any system folders that you may be monitoring (for example, Documents, Desktop, Applications, and Downloads).
https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Finder.html

Silverstripe 3.1.2 Issue saving FocusPoint when module used with Gallery module

I'm using two great modules for Silverstripe 3 but there is a conflict somewhere which I can't work out. I've asked the developers but they have not found the solution yet.
Modules:
FocusPoint which allows you to choose where the image crops from. Great!
https://github.com/jonom/silverstripe-focuspoint
Gallery, popular gallery module.
https://github.com/frankmullenger/silverstripe-gallery
Both work fine. But Focus points do not "save" within the gallery section of a Gallery page. You can edit and choose the focus point but after saving it snaps back to the previous position. You can alter the focus point in the Files tab of the CMS so it must be how Gallery saves each image.
I have updated the template to CroppedFocusedImage but this is not a template issue.
It would be a very helpful addition.
Can you please provide some details of failure? Do you see any warning or error messages if you run in dev mode? Any small black error box on left-top when you save?
If FocusPoint module does not work, you can have a look at folder permissions or maybe any PHP libraries like ImageMagick, GD support etc. Maybe you you changed something during upgrade?
If both modules work individually, but the problem is cropped image is not saved in correct directory, it is another issue although it could still be permission issue.
You can set which folder it needs to save into, same as how you set in normal UploadField. But it wouldn't change just because of your upgrade.
For anyone looking for the answer it has been resolved here: https://github.com/frankmullenger/silverstripe-gallery/pull/23

How to hide excluded files in visual studio?

I have a project with hundreds of pages classes and controls. many of them are excluded but as they appear in the project browser they clutter it and make it difficult to find the files I need. I don't want to delete them since every once in a while i get back to them for review. is there any way to show/hide the excluded files with a button toggle?
I don't have the button for show all files. see picture:
Yes, there is a button to hide/show excluded files.
The button is under solution explorer tab.
Please check this link for VS2008:
http://blog.brianhartsock.com/2009/09/14/visual-studio-tip-show-all-file/
Important Update:
After trials on VS2012 I found out that if you create New Web Site the hide/show button will not appear for no apparent reason. However, if you create New Project the hide/show button will appear!! So, it seems that you have to avoid creating New Web Site... but create New Project instead to have the button on Solution explorer. Try moving your work to a New Project rather than your current solution Good Luck!

Images not all showing up on simulator but shows in storyboard

I am pretty new to iOS development and I was poking around in storyboard in Xcode 4.5.2. I started a new tab bar project (5 tabs) and then dropped in some images (UIImageViews objects) to them, everything looked good and the build came out fine on the simulator but not all the images are showing up. The same image would be showing on the Firstviewcontroller but it won't show on another viewcontroller. And I can't seem to add new image objects into the firstone (meaning i can place it in the storyboard but new ones won't show up on the simulator), It almost seems to be showing cached screens. For example, I just randomly place images all over a viewcontroller and then shifted them around and ran the simulator again but the positions do not match.
Does anyone have any information or experience with this on Storyboard?
Thanks in advance.
Ray
In my case when I have created new project in Xcode 6 I can not show the images in the Simulator and as well as in device. I have imported all the images in the image assets making a folder within that.Now I have imported all the images, all are working fine now. All images are now showing now.
Follow these steps:
STEP 1:
STEP 2:
STEP 3:
and then Import images which you need. Reference Link:
StackOverflow link
I had a similar issue. But later found out that this was because I had put the images in a real folder in the app directory. So there was my project's folder, which contained another folder named 'Assets' which contained the images. This was solved when I moved my images out of the folder and put them in the project's root folder.
In my case the picture was a JPG and not a PNG.
Replacing image in xcasset for the same image converted to PNG was the trick.
Restarting simulator fixed my problem. I think it was a cache problem.
NOTE: I'm using iOS 10 with xcode 8
I encountered this problem after I refactored storyboard.
The possible solution:
- Go to Storyboard and select the image you don't see in the simulator.
- Go to the Attributes inspector and re-select the image again.
After Storyboard refactor, sometimes Xcode assigns Unknown image to the UIImageView.
Reselecting the image solved the problem.
It happens when you change the folder for your storyboard or image. (Possibly copied storyboard from another project).
Find your Image in the Project Navigator, Select it and change it's location to (Relative to Project)
If necessary, you'd need to relink your image.
#PressRay, I have been toying around with things and have some suggestions. I have moved this to an answer, because they would have put us in chat if we kept going. But hopefully this will do it. First off, I think you should make your tab bar from interface builder, perhaps you have input some code incorrectly. You can either start one from the first screen of create a new project, or you can drag one in from the library. But it is a Tab Bar controller. Then for each of your five views, you can place a view controller on the screen for it. Then you can drag from your tab bar controller to each of the five new view controllers and select relationship tab bar controller. This will set up each vc for you.
Next I would suggest you turn off auto layout to get a feel for story boards first before you jump into auto layout and constraints. That is why I think your png's are not showing up. The two lines look like they are too close together because of some contraint moving them. To do this select the view controller, make sure it is just the view controller and then in the right hand view, go to the file inspector, it looks like a page icon. Under Interface Builder Document should be a check box for Use Autolayout. Click this so there is no check mark. Now you will be using struts and spring on each vc that you turn this off. So go ahead and turn it off on all of them.
Next you have some png files to put in. Drag your image views to wherever you want them in any of your vc's. Then hook up the png files by selecting the image view and then once again on the right hand view select the attributes inspector and under the drop down menu of Image find the png that you want. Then you can move the image views anywhere in the vc that you want. I think this will solve your problem. Let me know what happens or if you have any questions.
For xcode beta (swift 4) converted the jpg to a png file, and created a folder called images.xcassets, added the png file to the folder. It worked going to try adding the jpeg to the folder and see if the image shows up. I just tried the jpeg and its not showing up. So my conclusion is to use png files and create a folder to hold the png files. Add the folder right after the Main.storyboard. Hope this helps.
I just changed the image/file names. Sometimes if there is a continuous pattern xcode gets stumped. So if you have image_1, image_2....change to 3_image. This fixed my problem.
try to check the image properties in your project in case you haven't set them
to

What is the correct way to remove resource images from a VS project?

I have imported images through the visual studio designer to the projects resource file. Some of these images are no longer used and I want to remove them.
However, I've tried to remove the resource images before by deleting the image file through the solution explorer and then removing the corresponding <data> element from the .resx file. However, this causes the VS designer to have a panic attack and start throwing exceptions saying it can't find the files I've just removed even though they are not referenced anywhere.
What is the a proper way of deleting images from the resource file?
This is a quick visual guide on removing the imported resources to Resources.resx.
Right click your project from Solution Explorer
Choose Properties
Choose Resources
Select image to remove
Click "Remove Resource"
You should select the resource in the resource grid and click Remove Resource, as described in this MSDN article.
Click on the Image or BackgroundImage property to show the Select Resource dialog for the control. Select the image from the list. Select the Clear button under Local Resource. Select Okay to close the dialog.

Resources