Thursday 10 December 2015

Work with CollectionViewCell in TableView IOs/Iphone

=> Here Used CollectionView The Using TableView In Ios
   And Used How to Perfomnce About    Using emded and ColllectionView And
   TableView Both Concept And level of The Basic Api :


- (NSInteger)tableView:(UITableView *)tableView

   numberOfRowsInSection:(NSInteger)section
{   
    return [self.articles count];
}


=> Her Used CellForRowAtIndex Path In TabeView And

    Used Delegate Method And Data sources



 - (UITableViewCell *)tableView:(UITableView *)tableView

 cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *cellIdentifier = @"ArticleCell";

    UITableViewCell *cell = [tableView

dequeueReusableCellWithIdentifier:cellIdentifier];

    if (cell == nil)
    {
       cell = [[[UITableViewCell alloc]

initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier]

autorelease];
    }

    cell.textLabel.text = @"The title of the cell in the

table within the table :O";

    return cell;
}