I have launched new project with storyboard and immediately delated .main, .h, .m files leaving behind Appdelegate h and m files.

Then added .xib file and added table view.
After running this app , table view was not getting displayed. Please help me to resolve this issue.

AppDelegate.h
#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end
AppDelegate.m
#import "AppDelegate.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

    return YES;
}
@end
ViewController.h
#import <UIKit/UIKit.h>

@interface ViewController : UIViewController

@end
ViewController.m
#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController



- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}
@end

In didFinishLaunchingApplication you need to set your custom VC to the mainWindow's VC. You are not just not getting the tableView. You are not getting any view.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.