Skip to content

programmatically  #2

@mrhaxic

Description

@mrhaxic

Hi,

Dear it doesn't work programmatically this my code, any hint?

 DTParallaxHeaderView *headerView = [[DTParallaxHeaderView alloc] initWithFrame:CGRectMake(0, 0, 320, 200) withImage:[UIImage imageNamed:@"girl.jpg"] withTabBar:nil];
    
    //    DTHeaderView *headerView = [[DTHeaderView alloc] initWithFrame:CGRectMake(0, 0, 320, 200) withImageUrl:@"http://s3.favim.com/orig/47/colorful-fun-girl-night-ocean-Favim.com-437603.jpg" withTabBar:tabbar];
    

    _tableView = [[DTParallaxTableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];

    [_tableView setDTHeaderView:headerView];

    _tableView.showShadow = NO;
    _tableView.delegate = self;
    _tableView.dataSource = self;
    
   // [_tableView reloadData];

    [self.view addSubview:_tableView];

the image is not displayed and the header is not stick

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions