0

I am trying simple things in view controller drag UITableView define

#import <UIKit/UIKit.h>  @interface ViewController : UIViewController <UITableViewDataSource,UITableViewDelegate> 
{     
     IBOutlet UITableView* tv;     
} 
@property(nonatomic,retain)IBOutlet UITableView * tv; 

#import "ViewController.h" 
@interface ViewController ()  
@end  
@implementation ViewController 
@synthesize tv;

when I try to run the app it crashes. I read same related issue and I am trying to select viewcontroller then in view set UITableviewcontroller but I still get the issue .

Harshad
  • 2,361
  • 2
  • 18
  • 24

1 Answers1

0

See this images may be it'l helps you,

1.connect IBoutlet

enter image description here

2.connect Delegate and Datasource

enter image description here

Balu
  • 8,470
  • 2
  • 24
  • 41