I am making an app in which i am using tableview. but i am stuck in some issue that is when i am setting text to my cell, separator line is showing after some space from left below is my screen shot
What i am mistaking ??? below is my sample code:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return 5;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *tableviewidentifier = @"Cell";
UITableViewCell *cell= [self.tableview dequeueReusableCellWithIdentifier:tableviewidentifier];
//cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellAccessoryDisclosureIndicator reuseIdentifier:tableviewidentifier];
if(cell==nil)
{
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:tableviewidentifier];
}
cell.textLabel.text=@"demo";
return cell;
}
Thanx in advance... please help as i am stuck in it :(