Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "History&Favorites.h"
- @interface History_Favorites ()
- @end
- @implementation History_Favorites
- - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
- {
- // self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
- if (self) {
- self.title = @"History";
- self.URLs = [[[NSMutableArray alloc] init]autorelease];
- [self.URLs addObjectsFromArray:@[@"first", @"second"]];
- }
- return self;
- }
- - (void)viewDidLoad
- {
- [super viewDidLoad];
- // Do any additional setup after loading the view from its nib.
- }
- - (void)didReceiveMemoryWarning
- {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- -(NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
- return 1;
- }
- -(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- return [self.URLs count];
- }
- -(UITableViewCell *) tableView:(UITableView *) tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- static NSString *cellIdentifier = @"Cell";
- UITableViewCell *hiddenCell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
- if (hiddenCell == nil) {
- hiddenCell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier]autorelease];
- }
- hiddenCell.textLabel.text = @"Detail"; //[self.URLs objectAtIndex:indexPath.row];
- // History_Favorites *historyView = [[History_Favorites alloc]init];
- // [self.navigationController pushViewController:historyView animated:YES];
- return hiddenCell;
- }
- -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- }
- - (void)dealloc {
- [_tableWithBookmarks release];
- [super dealloc];
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement