Iphone UITableView(剖面)页脚始终最大化宽度

Iphone UITableView(剖面)页脚始终最大化宽度,iphone,objective-c,ios,Iphone,Objective C,Ios,我想建立一个facebook应用程序风格的登录视图。问题是我的页脚视图总是全宽的,而不是我在界面生成器中设置的宽度 登录按钮是部分页脚。“注册”按钮是tableView页脚 如何使按钮(宽度)更小 我要在视图按钮上的注册按钮。我该怎么做? 将按钮和其他视图包装到单独的视图中。在viewForFooterInSection:: UIView *wrapper = [[UIView alloc] initWithFrame:aSuitableFrame]; UIButton *loginButto

我想建立一个facebook应用程序风格的登录视图。问题是我的页脚视图总是全宽的,而不是我在界面生成器中设置的宽度

登录按钮是部分页脚。“注册”按钮是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
    

    将按钮和其他视图包装到单独的视图中。在
    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
    

    真是一个应用程序的名字!勾引我..真是一个应用程序的名字!勾引我。。