In my xcode 11.5, I am not able to see Launch Image Source from path Target->General->App icons and Launch Images-> Launch image source
I have referred following link but it does not help me.
Link
I have added below 2 lines of code into my info.plist file to provide larger screen support.
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
I have multiple targets in my application. So, each target has different splash screen. How can I achieve it?
You can create multiple Launch Screen Target.storyboards and you can add respective Launch Screen storyboard to respective target under File Inspector. Also you can create multiple Assets.xcassets for each target under different folder and add images specific
to each target. And add Assets.xcassets to respective target under File Inspector.
Related
Please, help me and tell me what am I missing.
My goal is to display simple PDF file (stored locally for example) in the WebView control. Can I bind path of the file to the Source property of the WebView? Or what is the correct way to show PDF in UWP?
P.S. and if the only option is to do like here - how must I add pdf.js to my project??
My goal is to display simple PDF file (stored locally for example) in the WebView control.
If you want to display pdf in WebView control, then the methods in Display a Local PDF File in a WebView is most like the only way to solve your problem.
You can follow the steps in the xamarin official document, and here are some additional tips we need to pay attention to:
After downloading pdfjs, for UWP app, you need to copy the entire folder into the Assets folder, make sure that the folder is named "pdfjs", otherwise you will need to modify the code to change the path.
Your .pdf file should be stored into the Content folder under the Assets folder, it means you will need to create a new folder named "Content" under Assets and copy your .pdf file into this folder. Otherwise, you will also need to modify the code to change the path.
After copying your .pdf file into the "Content" folder, don't forget to change the Build Action of this file to Content like this:
Or what is the correct way to show PDF in UWP?
In uwp app, you can use Image to show PDF file, you can refer to the official PDF document sample. But I don't know if PDF can be displayed as Image in Android and IOS apps, since you're developing a cross-platform project, I think it's better to use the built-in method to solve such problem.
If a demo for xamarin UWP is needed, you can leave a comment, I will upload my demo later.
I am creating a sort of the File Directory like a Finder in Xcode Cocoa Objc-C.
I have created a collection view with many square buttons and each button opens up a different file located in the app. What I have done until now is populated each button with the screenshots from the files (so that it would look like a Finder). However, I was wondering if is another way retrieving the icons/images of the files?
Thank you.
[NSWorkspace iconForFile:fullPath];
I want to take an image from my project and add it to the "About MyApp" window.
This seemed as simple as adding the image to the credits.rtf file; once I dragged and dropped the image from the project to the credits.rtf file, it inserted the image into the file and I put it where I wanted it, but as soon as I ran the application, there was just a space where I had put the image.
Is there any way to show an image in the About MyApp menu (other than the application icon) without creating a custom NSView and changing the target of the About NSMenuItem?
I created a new Xcode project, selected it's 'Credits.rtf' file and pasted in an image, built and ran it and the image auto-magicly showed up in my "About…" dialog.
Note: it changed the file extension to '.rtfd' and I got the following dialog (sheet):
I have a "Resources/en.lproj/Localized.strings" file, with some key/value pairs in the format:
"key"="value";
I select this file and in File Inspector in the Utilities Pane I choose to add a new localization (es) pressing the '+' button in the Localization tab.
This action should create a new file "Resources/es.lproj/Localized.strings", but instead the original "Resources/en.lproj/Localized.strings" now displays a small triangle at the left ( as if it were a folder ) and holds inside two files Localized.strings (English) and Localized.strings (Spanish). No es.lproj directory created.
I have never read of this behavior even in references to this using XCode4.
What I'm missing?
Updated info:
I have checked the app bundle installed in my iPhone Simulator and the folders are created there, with the corresponding files.
I don't know if this is the default way but is confusing to me since reading the documentation this is not what I understand.
Your could try this : Quit XCode, relaunch your project. Remove all localizations from your project properties (keeping the files when asked), add them back, remove es localization on your file, then add it back.
My program has two targets and I want to correctly configure this screen:
I successfully configure the "App Icon" and "Launch Images" in .plist file, setting the key CFBundleIconFile and CFBundleIconFiles (for icon) and UILaunchImageFile (for launch Image) in the .plist file.
To see this error yourself, try the following:
Create a new project
Create two or more targets for this project
Go to the screen above (select the project icon in XCode, in targets select the "summary" tab)
Select an image to be the icon of this target
The icon will be added to the project and automatically saved in the root project directory in the file system with the name "Icon.png"
Go to another target and select another image to be the icon of this target
Here is the problem. The system will say: "Want to replace this file?" If I say yes, it overwrites and the first target icon is replaced!!! If say no, nothing is done.
Is there a way to configure two different icons and two launch images to appear in this screen for each target? I can correctly configure it in the .plist file, but in this screen it looks like I have no image!
You need store icons in different folders.
Create 2 subfolders in "images" (in file system, not in Xcode)
2. Create corresponding "group" (yellow folder) in Xcode and set right path for them (optional)
3. Add all icons to project (in corresponding groups)
4. Set "Target membership" (in the right panel in Xcode) to right target for each icon.
5. The info.plist file(s) should reference to right icon name.
Also be aware of:
All files from subfolders of "images" will be placed in one root folder in device's file system, so it is never mind, that images located in different folders in developer's machine. If you have files with some name in different folders, only one may be placed in final bundle. It is why you need specify "Target membership".
Do not set arbitrary names for lancher icons. Some devices may no recognize icon, if it named arbitrary, ever if it is mentioned in info.plist file (see here).