【发布时间】:2016-04-26 09:47:45
【问题描述】:
在我的应用程序中,我想根据 IBActions 加载我的单元格。这是我的两个 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;
}
如何将 value=0 分配给 action1 并将 value =1 分配给 action2?
【问题讨论】:
-
其实你想要什么?
-
@IOSDeveloper。如何将我的 value=0 分配给我的 action1 并将 value =1 分配给我的 action2?
-
@User558 你拥有一切......就去做吧。
标签: ios uitableview uibutton