从UITableView更改为UIView时,UIButton不显示

从UITableView更改为UIView时,UIButton不显示,uitableview,uiview,uibutton,Uitableview,Uiview,Uibutton,最近,我将学校项目应用程序的视图从UITableView更改为UIView,并在interface builder中添加了自定义UIButton及其属性,并将它们适当地链接到文件所有者。出于某种原因,当我启动应用程序时,表视图会切断我放置按钮的位置,并且是一个空白的白色区域。你知道我会做错什么吗?下面是一些接口和实现代码。我对xcode比较新,所以请记住这一点 .h: 您能格式化此代码以使其可读吗?:)你能截图你的界面生成器层次结构吗?我不能添加图像,因为我是网站的新用户。我之前尝试过这样做,以

最近,我将学校项目应用程序的视图从UITableView更改为UIView,并在interface builder中添加了自定义UIButton及其属性,并将它们适当地链接到文件所有者。出于某种原因,当我启动应用程序时,表视图会切断我放置按钮的位置,并且是一个空白的白色区域。你知道我会做错什么吗?下面是一些接口和实现代码。我对xcode比较新,所以请记住这一点

.h:


您能格式化此代码以使其可读吗?:)你能截图你的界面生成器层次结构吗?我不能添加图像,因为我是网站的新用户。我之前尝试过这样做,以提供更多信息,但声誉不够:(
@class EditstudentViewController;
//@interface StudentList : EmbeddedTableView : UIViewController <UITableViewDelegate, UITableViewDataSource> {
@interface StudentList: UIViewController <UITableViewDelegate, UITableViewDataSource> {
NSMutableArray *_students;
int indexTag;
EditstudentViewController *_editstudentViewController;
//UINavigationController *navigationController;
IBOutlet UITableView *tableView;
IBOutlet UIButton *roleCall;
IBOutlet UIButton *groups;
IBOutlet UIButton *options;
IBOutlet UIButton *classStats;
}


@property (retain) NSMutableArray *students;
@property (retain) EditstudentViewController *editstudentViewController;
- (IBAction)back:(id)sender;
@property (nonatomic, retain) UITableView *tableView;
@property (nonatomic, retain) UIView *roleCall;
-(IBAction)roleCall:(id)sender;
@property (nonatomic, retain) UIView *groups;
-(IBAction)groups:(id)sender;
@property (nonatomic, retain) UIView *options;
-(IBAction)options:(id)sender;
@property (nonatomic, retain) UIView *classStats;
-(IBAction)classStats:(id)sender;
@implementation StudentList;
@synthesize students = _students;
@synthesize editstudentViewController = _editstudentViewController;
@synthesize tableView;
@synthesize roleCall;
@synthesize groups;
@synthesize options;
@synthesize classStats;