Skip to content

Instantly share code, notes, and snippets.

@codeOfRobin
Last active August 29, 2015 14:18
Show Gist options
  • Save codeOfRobin/866358bcb2a0ddfb0858 to your computer and use it in GitHub Desktop.
Save codeOfRobin/866358bcb2a0ddfb0858 to your computer and use it in GitHub Desktop.
UIImageView *img=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.frame), 330)];
[img setContentMode:UIViewContentModeScaleAspectFill];
[img setTag:2];
[img setImage:[UIImage imageNamed:@"sda"]];
UITableView *table=[[UITableView alloc]initWithFrame:CGRectMake(0, 80, CGRectGetWidth(self.view.frame), CGRectGetHeight(self.view.frame))];
[self.view addSubview:table];
[table setDataSource:self];
[table setDelegate:self];
[table registerClass:[UITableViewCell class] forCellReuseIdentifier:@"cell"];
[table setBackgroundColor:[UIColor clearColor]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment