You can do:

for (HeaderSpec *header in HeaderSpects) {
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(x, 0, [header.width intVlaue], tableView.rowHeight)];
}

x += [header.width intValue];

if you like.