Could not insert new outlet connection [duplicate]

I got the same problem as you today… I think this is a bug of Xcode, below is the way to fix the issue: Close the project you are working on with. Delete your project’s【DerivedData】folder. (This folder may inside your project’s folder, or inside ~/Library/Developer/Xcode/DerivedData/(your project)/ ) or somewhere else that was setup by you. … Read more

How to load a xib file in a UIView

To get an object from a xib file programatically you can use: [[NSBundle mainBundle] loadNibNamed:@”MyXibName” owner:self options:nil] which returns an array of the top level objects in the xib. So, you could do something like this: UIView *rootView = [[[NSBundle mainBundle] loadNibNamed:@”MyRootView” owner:self options:nil] objectAtIndex:0]; UIView *containerView = [[[NSBundle mainBundle] loadNibNamed:@”MyContainerView” owner:self options:nil] lastObject]; [rootView … Read more

Custom views with Storyboard

Putting the widget/view in a separate .xib file works, and is appropriate especially if you might want to reference that same view from multiple View Controllers. However, sometimes you do want to see the additional view/widget within the same storyboard, and it is possible. Here’s how you do it: Select your view controller in IB … Read more

Execute code in Launch Screen

No, it’s not possible. When launch screen is being displayed your app will be in loading state. Even the – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions will not be completely executed while the launch screen is displayed. So it’s clear that, you don’t have any access to your app and so at this point you can’t execute … Read more