Since Xib is not part of the main bundle, the get path returns nil, but you can get the XIB of the startup screen without using the path using the method
let launchScreenNib = UINib(nibName: "LaunchScreen", bundle: nil)
or
You can load views from XIB as
// Swift let objects = NSBundle.mainBundle().loadNibNamed("LaunchScreen", owner: self, options: nil) let view = objects[0] as UIView // Obj C NSArray *objects = [[NSBundle mainBundle] loadNibNamed:@"LaunchScreen" owner:self options:nil]; UIView *view = [objects objectAtIndex:0];
source share