How to remove Launch screen from project in iOS? - ios

I want to remove the launch screen from my project because I want to add a GIF image as a launch screen. I tried to set Main.Storyboard as Launch screen file in target but it is not working.

You don't remove the launch screen. You must have a standard, static launch screen storyboard. It's used before your app is even running. You can't change that.
Add whatever static image you want to the launch screen.
If you need anything dynamic that you wish to show before the main storyboard is shown then you need to show it on your main storyboard or some other storyboard/root view controller you want to show before the main storyboard (but after the launch storyboard).
But do your users a favor and don't do anything that delays their ability to start using your app.

As you cannot set Gif image directly to launchscreen storyboard Try this way
Take first frame of your gif image as png and set it on the LaunchScreen storyboard.
Then in the next view controller to be shown after the LaunchScreen storyboard, create a view, put imageview in it and show gif image in it , it should be the same size as the image in your LaunchScreen storyboard.
Please refer this link https://github.com/kirualex/SwiftyGif
Nice example is given here to show gif image in UIImageView.

You can try Uber.
I have no idea how to remove the launch screen, but you can make the launch screen looks same as the first frame of your gif. After the static launch screen disappear, you can start your GIF.
Here is a video I take. Video

You will have to follow the same solution as rmaddy suggested. You will have to add a viewController which shows you animation, before you show your main storyboard, or your first viewcontroller whatever it is.
What you can do it, you can set an image which is identical to the first frame of your gif, as your default launch screen, so that it looks like there is an animation on the launch screen, when you show your gif containing launch screen.
Hope you get it.

Related

how to set image as background in launch.storybord + xamarin.forms

in recent release of xamarin launch screen can be designed from storyboard instead of old approach where we were adding all splash screen images according to wise.
https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/launch-screens/
from this link get to know how can set launchscreen using storyboard.
so my question is how can i set image as background to storyboard dont want background colour.
i need image as background on which i can put logo image and label.
so is it possible?if yes then how.
please help.
You need to set top,bottom,leading,trailing constraints on the imageView.
Select Constraint edit mode ,and click twice to show the point on side which ca be dragged to set the constraint.
Modify the constraint value to 0(in Property menu).
Do the same work on the four constraints.
Refer to Auto Layout with the Xamarin Designer for iOS

Limit AutoresizingMask height stretch

I made this screen
Screen on iPhone 4s(9.3)
It looks fine on that device, however when i test this same screen with iPhone6(9.3) it looks like this. Since i cannot post more than 2 links, i merged the third image with the second one
Screen on iPhone 6(9.3) with the Third Image
As you can see, that gray view, doesn't fill the white space beetwen that same gray view and the first bottom button(lojas). Notice that i don't have the autoresizing height stretch on(that vertical arrow inside the blocks). If i turn that on, this happens
Third Image inside the Second Image
See that, the gray view goes over the buttons, i don't want that.
My question is, how can i solve this? Is there a way to make the gray view stop above the Lojas Buttom at the bottom? Thanks for your time!
OBS: I CANNOT use autolayout.
EDIT: Got the problem solved
I just changed the View as option in Interface Builder, changed it to 7.0 and later, so it gave me the "real appareance" of the app.
I changed the View as option inside the Interface Builder so i could see how the app really look like and set the iOS Deltas to 0, made the changes based on that.

UIButton is out of navigation bar

I have a custom UI Button (just regular button but with image), within the navigation bar, but when I choose my image it looks like this in designer:
As you can see here, it's over my provider and status labels, and also when I run application it's over the WebView (which is bellow), so definitely out of navigation bar. I tried to find in storyboard some property where I can adjust this but I couldn't find any. I'm using swift and storyboards.
Appreciate any help, iOS newbie :)
Based on your description I think your issue is that you are trying to add a button for navigation. What you need is a NavigationBar with a NavigationItem/BarButtonItem in it. If you look in the object library you will be able to find these.
Just drag them onto your story board. Once there select the button and in the side menu you will be able to select the Image for that Item. Now it is in the navigation bar up top. Let me know if there are still issues. 👱🏼
You have to make sure your 1x image is to the specified size (and then your 2x etc, or just use a PDF at the 1x size.
Icon sizes are here: iOS Human Interface Guidelines: Icon and Image Sizes
I made my pdf 22x22 and added it to .xcassets with scale factor "single vector"

LaunchScreen & Splash Screen

I started remodeling an app I am working on.
I wanted to change its launch screen image
So I went ahead and replaced the images that are in in LaunchScreen.xib file
The LaunchScreen.xib file launches the new image but leaves a blank white line where the status bar should be. (this white line is not part of the image)
How can I fix that ?
Double check your constraints. Or just remove all of them, just to be sure. Then stretch your UIImageView so it would take the whole size of the view and add constraints again. Should help.
To every strange ios problem, there is an even stranger solution
the solution for me was to set the constraint of the top layout guide to none other than -64...
The reason for it, besides accounting for the 20 pixels of the status bar, i also need to account for the 44 pixels of the navigation bar

UIImageView in storyboard doesn't show image at start

I am writing an iOS app and I am using storyboards. In some screen I have an UIImageView for a banner. I set the image to the UIImageView in the menu in storyboard. (Not code behind)
But the Image isn't shown after the screen is loaded. After a while the image appears.
Why is the image loaded so late? On other screen everything is ok.
best regards
In my opinion, you should set the background image for banner in file LaunchScreen.xib.

Resources