I am working with UITableView now and what I an having is
MyClass.h
@interface MyClass : UIViewController {
}
@property (strong , strong) UILabel *name;
@property (strong , strong) UILabel *add;
and
MyClass.m
-(NSInteger)tableView:(UITableView *)atableView numberOfRowsInSection:(NSInteger)section{
return 3 ; }
-(UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"cell"; tableCell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier]; ................................................... return tableCell;
}
When I put i break point at numberOfRowsInSection, it seems that it is not being executed at all. It is confusing me now. Please advice if you have encountered it before.
Thanks
@property
is in the wrong place. And the code you omitted with dots, plays major role about what to display. – He Shiming