I have XIB
file TimerCell.xib with UITableViewCell
. In other class in cellForRowAtIndexPath I initialize this UITableViewCell
:
static NSString *CellIdentifier = @"cellTimer";
TimerCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
//cell = [[TimerCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"TimerCell"owner:self options:nil];
cell = [nib objectAtIndex:0];
In my TimerCell I have two UILabel
and one UIButton
. For this button I would like to set action to some method.
How can I do that? And how to show in the first UILabel
the data from my background countdown timer in real time?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…