Is it possible to programmatically change the Default.png launch image? - iphone

Is it possible to programmatically change the Default.png launch image?
For example, could I replace it by an other image that fits better? My app has a tab bar and every tab has a very different screen, and I want to recover to that particular tab after a hard launch from scratch when the app got terminated in the background.

No.
The image Default.png is part of the bundle of your app, and you can only read this folder, you can't modify it.
There is no API to specify a different launch image.

Actually, you can.
There's little trick that you can do:
set up path to Launch Image in Info.plist file to something like
../Documents/Splash.png
So, at first launch there will be no splash.
After that just copy Any file of your bundle in application Documents directory as Splash.png
And in next launch your Splash will change.

perhaps an idea would be for your default to be a blank "view" along with the tab bar controller at the bottom. This goes along the lines of Apples HIG.

Related

SwiftUI: Is it possible for a document-based app to display a custom view instead of the file picker?

I have just started learning swift and I am writing a document-based app. By default, when launching the app without opening any document with it, a file picker would appear.
Is it possible for it to skip the file picker, and display a custom greeting window if no file is opened with the app? How can it be done?
Of course, you can, no one is limiting you to do so, setting your own view controller as an entry point.
Demo: Github

how to remove flutter's default splash screen?

I'm a developer who is developing a flutter.
I have a question about the default splash screen of the flutter.
I found that the first time I created the flutter project, it basically included a splash screen with a flutter icon.
I looked it up to erase the default splash screen, but I got a reply that it is not possible in the flutter/dart stage.
To solve this problem, first of all, I wanted to customize the defalut splash screen using the flutter_native_splash library.
However, the library did not meet my requirements because it was impossible to insert elements other than images (ex. text).
So, I used the flutter_native_splash library to insert an icon with only pure white color to create a fake splash screen.
And I made a real splash screen, registered it as the initial screen of the GetX library, and set it up to move on to the next page after the schedule delay.
You can check the ones described above in the video below.
In this situation, I have two questions.
First, I wonder if I can insert text into the splash screen using the flutter_native_splash library.
Secondly, I wonder if there is a way to delete the default splash screen that is automatically generated by the flutter.
The default splash screen cannot be overridden with Dart/Flutter alone. They are controls shown by the native Android/iOS context while the Flutter runtime is initializing. As such, any splash screen widget you create inside Flutter will show after the default splash screen. (Even if you completely remove the default splash image, the app would just be a blank while screen until Flutter finished loading, and that's bad design.)
There are instructions on how to change the default splash screen here :
For Android
Step 1: Go to android/app/src/main/res/drawable folder :
Here you will find a file launch_background.xml. This is where you can write some code and make it work.
Step 2: Open launch_background.xml
Step 3: Change Background
Uncomment line 7–11 and this is where you can change your background, maybe a color or image on line 4
<item android:drawable=”#color/ic_launcher_background” />
Step 4: Change Image/Icon
This is where (on line 10) you can change your app icon or to an image which will be in the center if android:gravity is center (Make sure you add your icons for different size devices for better result).
android:src=”#drawable/qart_trans”
And That’s it!! Woohoo
For iOS
Step 1: Open the project in iOS stuff in XCode
Step 2: Go to ios/Runner Folder
You will see here Assets.xcassets folder and LaunchScreen.storyboard. These are two things which we want.
Step 3: Open Assets.xcassets and click on LaunchImage
Paste your images/icons in 1x 2x 3x Options according to recommended sizes for devices
Step 4: Now Open LaunchScreen.storyboard
Click on the view and on the right panel click the down arrow like symbol change properties like background and content mode according to your need.
Step 5: Now Click the Image on the storyboard
Now on the right panel click the down arrow like symbol gain and change its properties as per need.
And That’s it again!! Voila!!!

Change Launcher icon while installing the app in IOS?

Is it possible to set the user selected icon as launcher icon while installing the application in IOS?
Our client was asking the requirement as while installing itself user can select their custom launcher icon for Iphone Application. please help me to find out the solution.
Without a jailbreak, no, you can not do it.
The icon and the background image used while loading the app are both static. The first thing you can change is after the app has loaded, then you could have a user chosen splash screen.

In Xcode 4 which is the better app Window based or view based?

I am very new to iOS development. I am going to start a new project which is mostly related to to the database. Can you suggest what should I start from Window or view based app?
A view-based app only have one view, and includes a nib. However, window based app don't include a nib or a view, it's for add your own view.
I would chose view-based
1.There is no such difference in both
In View Based app you will get a default view controller in window.
In Window Based app you will not get anything by default already added in window, you have to add your own view.
They're used for different things. Neither is better than the other.
If you're a total rookie, I'd go with View based. It comes wired up with more stuff for you by default, and lets you work on your app's functionality rather than the details of getting stuff on the screen. It also limits you in ways that Window based doesn't, but for your level that's probably a good thing.
Anyway you have to make ViewController if you make project using window based.
Make your project using window based and View based. and compare both. So you can find what is different.
and iOS can have many view on only one window.

Remove a tab from a tabGroup's navigation without removing it from the tabGroup?

I'm using Appcelerator Titanium to build an iPhone app. I currently have a tabGroup control that links to the major sections of the app, including the home screen.
What I'd like to do is remove the "Home" tab only from the navigation, without removing it from the tabGroup object. So, for example, I'd still be able to call tabGroup.setActiveTab(0) and it would take me to the home screen, but the tabs at the bottom wouldn't have a "home" button.
Is this even possible? If so, how can I do it?
Notes: I do not want to hide the whole bar, just a single tab. I also do not want to remove the screen from the underlying object, just the navigation UI. Also, I'm only developing for iPhone and don't care if other platforms aren't supported, so iPhone-only solutions are acceptable.
take the home screen out of the tab group completely and manage displaying it and transitioning to it separately; in the end, it will be a cleaner solution.
Have you tried tab.hide() or when creating the tab setting it to visible: 0?