在我的應用程序,我想基於IBActions.here加載我的細胞是我的兩個IBActions,如何將值分配給iOS中的不同IBActions?
-(IBAction)action1:(id)sender
{
}
-(IBAction)action2:(id)sender
{
}
我想加載這樣
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if (value == 0)
{
return 96;
}
else if(value == 1)
{
return 237;
}
return 0;
}
如何將我的價值= 0分配給我的action1和value = 1到我的action2?
的標籤屬性實際上你想要什麼? – riddhi
@IOSDeveloper。我如何將我的值= 0分配給我的action1和value = 1到我的action2? –
@ User558你擁有一切......就這樣做。 – TheTiger