iosxcodelaunch-screen

User Defined Runtime Attributes on Launch Screen


Why can't we add User Defined Runtime Attributes to a Launch Screen's subview? Is there an alternative?


Solution

  • The app is not yet loaded so the view hierarchy does not exist and the system can not call any custom view controller setup code you may have in the app (e.g. viewDidLoad). From the link. http://useyourloaf.com/blog/using-a-launch-screen-storyboard/

    I think because view hierarchy does not exist and to set runtime attributes the iOS uses KVO. And it is just a static view. Alternative. Have to use static images with the feature you want.