# RssListController.h
@interface Rsslistcontroller:uitableviewcontroller <MWFeedParserDelegate>{//Displaying Nsarray *itemstodisplay; *formatter;} // Properties@property (nonatomic, Strong) Nsarray *Itemstodisplay; @end
# RSSLISTCONTROLLER.M
@implementation Rsslistcontroller
-(Nsinteger) Numberofsectionsintableview :(uitableview *) tableview{ // Return the number of sections. return 1
-(Nsinteger)TableView: (numberofrowsinsection:(nsinteger) section{ // Return The number of rows in sections. itemstodisplay.count;;}
- (UITableViewCell *)TableView: (UITableView *) TableViewCellforrowatindexpath:(Nsindexpath *) indexpath{// Return init TableCell < span class= "constant" >< Span class= "string" >}
-(void) TableView: (UITableView *) tableView Didselectrowatindexpath :(Nsindexpath *) Indexpath
{
< Span style= "color: #008000;" >// Return selected action
}
#pragma mark-editmode
//return Edit Status
-(BOOL) TableView: (UITableView *) TableView Caneditrowatindexpath :(Nsindexpath *) Indexpath
{
// Return can edit.
returnYES;
}
return Delete style
-(Uitableviewcelleditingstyle) TableView: (UITableView *) TableViewEditingstyleforrowatindexpath:(Nsindexpath *) Indexpath
{
// Return Delete style
returnUitableviewcelleditingstyledelete;
}
Return Delete title
-(NSString *) TableView: (UITableView *) TableViewTitlefordeleteconfirmationbuttonforrowatindexpath:(Nsindexpath *) Indexpath {
// Return Delete name
return@ "Delete";
}
Delete action
-(void) TableView: (UITableView *) TableView Commiteditingstyle: (uitableviewcelleditingstyle) EditingstyleForrowatindexpath:(Nsindexpath *) Indexpath
{
// Return Delete action
}
@end
iOS Development Uitableviewcontroller