There is a lot of useful information on how to change the app icon programmatically using "setAlternateIconName" in Swift.
According to the documentation of apple, the name of the alternate icon has to be declared in the CFBundleAlternateIcons key of the app's Info.plist file.
Now, I don't want to use pre-saved jpg./png. images to change the app icon. Instead, I'd like to download an image from a URL from within the app and us this downloaded image as the app icon. Obviously, it's not possible to just add the URL to Info.plist in the appropriate field..
Is there a way to solve this problem?
Best,
Nik
It's impossible to set the app icon to custom icon other than those set in CFBundleAlternateIcons in Info.plist
Related
Appstore rejects app upload and shows this error:
Invalid Image Path - No image found at the path referenced under key
'CFBundleIcons': 'AppIcon20x20'
Can anyone share what the issue is? I had implemented appicon using this.
Use https://makeappicon.com website to make app icons it will automatically generate app icons of all sizes required.
This is my first post on StackOverflow so bear with me.
I created this automator workflow, it generates all icon sizes needed for the App Store currently⟨sept 2022)
https://github.com/saxjax/app-icon-creator.git
1- Open in automator and save.
2- Create a squared image 1024x1024 or larger using preview.
3- right click on the image, select "To Icon"
follow the prompts.
The script consists of blocks of 4 for each icon size:
1-Get value
2-Duplicate
3-Scale
4-Rename
If you need a particular size, just copy paste that quadruple and change the pixel size and the name accordingly.
Feel free to manipulate and share the code however you like.
In the future from Xcode 14 and out you only need to provide one 1024x1024 icon in your assets catalog.
I want to do is add an image to one of my buttons. I uploaded an image to my Assets folder and whenever I add it as a background it comes out blank. I even tried adding a group with a background and it still doesn't work. I don't know why its not working. When I set a color to the button it shows but a background image won't show up. It seems so simple but when I run it the background is black. Please help.
The Images worked after I moved the images to the Assets folder of the WatchKit App instead of the WatchKit App Extension. Also, I changed the names to make sure they were correct.
For my case, first time I try new a Image set, set it's name, and then drag the image file in. But doesn't work.
Then some example video came into my mind and I directly drag the image file into Assets.xcassets, then set the file to Apple Watch only, and then drag the file to 2x. And everything is OK.
Looks like a bug somehow, but anyway it works.
I'm trying to add name of the app to header of FBSDKShareDialog as it shown on first screenshot but can't find property that responsible for it. I'm sharing FBSDKSharePhotoContent, it's shown on second screenshot. Do anyone know how to implement this?
There isn't a property that you can set in FBSDKShareDialog. The app name is taken from your app settings page. You will need to set up your app settings correctly for this. You can find additional information here.
I want to add my App icon to default Photo library but I do not know how to do that? Can it be done?
You can see the photo at here
I want to add my app icon for user after select video or photo, can click on my app icon to open my app.
Any ideas? Thanks in advance.
It's not possible to add your app in the iOS "Photos" app. But it's possible if you want other (3rd party) apps to be able to open files in yours.
A good place to start is this Instagram documentation on how they do it, and from that link you can see that the relevant Apple information lies in the UIDocumentInteractionController class reference and Document Interaction Programming Topics.
Thanks for the time to look. I have a weird problem. my Launch image (AKA Splash screen) seems to automatically be tied to my App icon. so I cant change one with out changing the other. In other words, when I add a new app icon, it changes the launch image to match.
I am guessing this has something to do with the .plist file, but I cant figure out where to fix it.
Thanks for the time!
You can specify them differant in plist file. See here
ALSO
Check Apple's link for default name of different files. You just need to rename with default name and add the image files in your project.