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.
I see a white launch screen but my application requires black screen by default and all other elements floating.
Im able to covert latter screen black using storyboard but not the default launch screen.
create controller for that as LaunchScreen.storyboard can't have any animation only change view background or set an imageView
for that create rootViewController and do the animation in it
I want to place an image into the LaunchScreen.storyboard viewController aswell as place the same image into my rootViewController in the normal storyboard. I want both screens look exactly the same.
But the image is not positioned the same if you use the same autolayout constraints. Might this be due to the statusbar at top which does not appear on launchscreen? How do i have to set up an image to look the same in both storyboard viewcontrollers?
I'm using UIimagePicker to select image and display it to UIImageview, however something weird is going on. If i use the image picker and select a photo and add it to the image view and change orientation of the iphone the imageview image resets to the default image. but if i select the image again using UIimagePicker everything works fine the image stays.So this happens only the first time orientation changes while the view is loaded. Any thoughts?
I have a storyboard with a UIImageView on it.
When I load the app in the emulator the UIImageView has a different position.
What could be causing this? The only thing I am doing to the UIImageview in the code is making it a subview of another UIImageview.
It is possible that your storyboard is for the iPhone 5 and not for the iPhone 4 screen.
You can turn this off by clicking on the icon at the bottom of the storyboard screen. It's the left icon in the icon group.
Hope that it's the answer on your question
Are you using Autolayout ? If not , then probably your struts and springs of the UIImageView are not set correctly causing the ImageView to change position.