Since iOS7 the default cover that is set in the info.plist under Icon Files (iOS 5) are not shown after installation the app. Instead the default cover by Apple is shown.
I can see that this property is for iOS 5 but I tried other as well. An example - Icon Files could not be changed from an Array to a Dictionary.
Do you know how to set a default cover for Newsstand app in iOS 7?
Best Regards!
OK i got the solution.Add Icon files (iOS 5) if you didnt add previously in your app-info.plist. Make sure that the long edge on your default cover is at least 512 px. ( Mine is 300 * 528 px)
Please see screenshot:
check the references for the icons you are using in the .plist, make sure they are added as reference to the image and not as references to a folder like the references for the launch images and the icon images
Try to remove "App Icons Source" catalog. In Target=>"General" tab.
Related
This might be a simple question, but how to add an icon to a screensaver in XCode ?
I'd added a Assets.xcassets to my project, an AppIcon with all versions possible of the image, but it is still shown with the default icon :(
Any hints of what i am doing wrong or missing ?
First ensure your General settings are correct:
In order for xcode to know where to pull the App Icon Source you should set this according to the name you assigned to the Icon Set. By default it pulls from AppIcon within your Assets folder. (As seen in the image below)
Also check all icons for correct dimensions:
If your general settings are correct and you are pulling from the correct icon source. Then the issue may have to do with a one or multiple icon sizes in your Assets folder that are not the correct dimensions. If you are missing icons or have incorrect dimensions the icon will not show up.
Hope this helps.
Finally got it working.
Applying AppIcons to a secreensaver is not enough.
You need to add two png images to the project too:
thumbnail.png – 90 x 58 pixels
thumbnail#2x.png – 180 x 116 pixels
The rest is done automaticly.
Hope this helps, if someone runs into the same problem.
I created a new project with xcode 6.0.1 using swift and set deployment target to iOS 7.0.
The screen size is wrong for iPhone 5s in iOS7 - it shouldn't have any black spaces.
In new Xcode 6 projects, you don't have these Default-568h#2x.png images.
Do the next steps to fix it:
1) Open your Images.xcassets and look for LaunchImage. It is probably missing.
2) In this case, click on + (located at the bottom) and click on New Launch Image.
3) Select your project target and open Build Settings tab. Look for "Asset Catalog Compiler - Options" section and then "Asset Catalog Launch Image Set Name", if it is empty type LaunchImage.
Voila!
Try using Default-568h#2x.png image as splash.
Project Properties -> General -> App Icons and Launch Images -> Click (Use Asset Catalog)
Pop-up -> Click (Migrate)
Delete (Launch Screen File)
Finish!!!
In Xcode 7, make sure in addition to what's been said about adding a LaunchImage you also add this entry in the plist file:
I imagine this won't help much, but I have exactly the same problem and found this link. Maybe it helps you, I coulnt find the answer:
Xcode 6 Storyboard the wrong size?
put Default-568h#2x to your app bundle with dimension 640x1136. You can assign launch images using xcode catalog assets alternatively.
Under project properties, ensure you are using the "asset catalog" for launch images. I found my project was using a custom location by default. By switching over to "Use Asset Catalog", the top/bottom black margin went away.
I was facing this problem in XCode8. I figured it out that Launch Screen File was not set.
Go to :
project Properties -> General -> App Icons and Launch Images
Click on drop down and select
Main.storyboard.
This issue is solved when you add the Splash screens for Defualt#2x.png and Defualt-568h#2x.png
I have made an app which has several custom fonts, but i'm struggling to make it work on ios6 devices, i have added them in myApp-Info.plist and it works without any problem on labels and buttons and everywhere except uiwebviews in ios7 , but in ios 6 it looks like the default font in everywhere and there is no change throughout the whole app in fonts. After searching couple of weeks, still haven't find any answer that would work.
Here is my code for assigning a font to label :
titleLable.font=[UIFont fontWithName:#"B Yekan" size:17];
I just encountered this problem, also, and found that in iOS 7, font names aren't case-sensitive; i.e., I was trying to use "ChunkFive-Roman", which worked in iOS 7 even though my code said "Chunkfive-Roman".
However, this doesn't work in iOS 6... I was getting the default font instead. Changing the font name to "ChunkFive-Roman" fixed it so that that the text was appearing correctly in both. (Note -- was using Simulator in both cases).
You have to follow the rules in this link, once you do it there u go..
Add your custom font into your project , i.e. Dragged the font's ttf file (CALIBRIZ_0.TTF) into your resource folder from finder and check the "copy file to project folder" option. )
Edit Info.plist: Add a new entry with the key Fonts provided by application.
For each of your files, add the file name to this array (Fonts provided by application)
Now set font to your label:
MyLabel.font = [UIFont fontWithName:#"Calibri" size:16];
http://blog.builtwithlogic.com/post/73503283890/installing-custom-fonts-on-iphone-and-ipad-ios-devices
Covers how to add fonts - Little confused though by your question you specifically mention iOS6 as the problem and UIWebView - Be interested to know what you mean by that piece?
Have you tried setting the fonts using UIAppearance ? or are you subclassing and amending the fonts as it could be that you've not done it right there. Could you supply some code showing how you setting you custom fonts throughout the app?
If you haven't already I'd ensure you've followed the steps in that email and then add a custom category to UIFont to pass back a specific font. If you haven't already done so I would also set the fonts in UIAppearance for your labels, Titles etc this is the cleanest and most efficient way to do it throughout your application as you only need set it one and you can set differently based on how a for example Label is presented -in a tableview in a navigation bar etc.
here's a link to the official docs
https://developer.apple.com/library/ios/documentation/uikit/reference/UIAppearance_Protocol/Reference/Reference.html
Appreciate this question is old but love to know if that helps.
I had a similar problem where the custom font would work in iOS7, but not iOS6.
The solution for me was to use the true font name not the filename.
To do this check the font name as shown in OSX's FontBook.
iOS7 allowed me to use the the filename (less the .ttf suffix), but iOS6 wanted the true font name as shown in FontBook.
For example for a font named CustomFont.ttf .....
I followed all the steps listed by others here to add the font to my app, but then used it by referencing it as #"CustomFont".
When I added the font to my mac and looked at it in FontBook (mac utility), it was actually named #"Custom font" - with a space and a lower case letter.
Hopefully this helps someone else out there :-)
iOS 6 cannot do custom fonts. That is a new feature only available in iOS 7.
How do we define default pngs in iOS 7? The how-to seems to have changed with Xcode 5.
This time I'll not be supporting anything less than iOS 7 so we can leave older version out of the discussion.
You'll want to learn about Asset Catalogs, which are brand new developer technologies that you'll find in Xcode 5. Under the hood, these will be the new ".xcasset" files & folders managed by Xcode.
And that public link from Apple that I just linked to is all we can talk about publicly outside of Apple's DevForums until the NDA for iOS 7 and Xcode 5 is lifted. I have seen a couple related questions, though.
To solve this issue you have to specifically add background images for iOS 6, Follow following steps to add this using new xCode.
1) Add new image set from asset catalog and name it "Default" image set
2) Right click on that asset catalog image.
3) Choose iPhone, Retina 4 - inch from options like following
4) Add images in sequence with resolutions
320 * 480
640 * 960
640 * 1136
5) Clean your project
6) Run your project
Try this way it will work
Asset Catalog is the best thing for setting application icons... It removes the need to follow naming conventions when you are adding or updating your app icons...
You can use this for setting splash screens & application icons..
In Xcode 5 you can find this options..
1- In the project navigator, select your target.
2- Select the General pane, and scroll to the App Icons section.
I've been reading the previous posts on this and it looked like the bug was fixed, but after an update, I'm having the same bug now. Apologies if any of the below is repetitive.
I recently updated my app. The .plist has Prerendered Icon Flag: true, and Icon already includes gloss effect: YES. However, in iTunes Connect the 512x512 icon has the big gloss over it? I went to check the binary details in iTunes Connect too and the Prerendered Icon Flag says false even though in the plist it's set to true?
Am I doing something wrong?
Check to make sure that you are adhering to the new iOS 5 icon layout in your .plist. If your strings such as "Icon already includes gloss effect" are now within the "Icon files (iOS 5)" dictionary, they will not be applied on iOS 5 devices.