我有一些注册表单,其中电子邮件和登录文本字段作为表格单元格,注册按钮作为页脚视图中的按钮。一切都很好,这是代码
frame = CGRectMake(boundsX+85, 100, 150, 60);
UIButton *signInButton = [[UIButton alloc] initWithFrame:frame];
[signInButton setImage:[UIImage imageNamed:@"button_signin.png"] forState:UIControlStateNormal];
[signInButton addTarget:self action:@selector(LoginAction) forControlEvents:UIControlEventTouchUpInside];
self.navigationItem.hidesBackButton = TRUE;
self.tableView.tableFooterView.userInteractionEnabled = YES;
self.tableView.tableFooterView = signInButton;
self.view.backgroundColor = [UIColor blackColor];
我的问题是如何在这个按钮旁边添加另一个按钮。
通过使用 [self.tableView.tableFooterView addSubview:...] 按钮未显示,如果我使用其他一些 UIView,将按钮放在那里,然后说 footerView 是 UIView,我看到按钮,但无法按下它们.
我希望这不会太令人困惑,并且您理解我的问题。