0
我想构建Facebook应用程序样式登录视图。问题是我的页脚视图始终是全宽度,而不是我在界面生成器中设置的宽度。UITableView(部分)页脚始终最大化宽度
登录按钮是部分页脚。注册按钮是tableView页脚。
- 如何让按钮更小(宽度)?
- 我想在视图的按钮注册按钮。我该怎么做呢?
我想构建Facebook应用程序样式登录视图。问题是我的页脚视图始终是全宽度,而不是我在界面生成器中设置的宽度。UITableView(部分)页脚始终最大化宽度
登录按钮是部分页脚。注册按钮是tableView页脚。
将按钮和其他视图包裹在单独的视图中。在viewForFooterInSection:
:
UIView *wrapper = [[UIView alloc] initWithFrame:aSuitableFrame];
UIButton *loginButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
loginButton.frame = CGRectMake(10,5,self.view.bounds.width-20, 44);
// etc.
[wrapper addSubView:loginButton];
// idem for other views
相当一个应用程序的名称! SEDUCE ME .. – Shailesh 2015-07-03 14:08:24