Objective c UITableview可滚动问题

Objective c UITableview可滚动问题,objective-c,uitableview,Objective C,Uitableview,我正在将我所有的数据添加到我的iPhone应用程序中,除了将数据硬编码到应用程序中之外,还进行了编码。我遇到了一个问题。我使用的是UITableView,每个表视图添加了大约150-250个项目,它允许我添加数据,但当我运行它时,它不允许我向下滚动大约12个项目。我希望能够滚动浏览我的所有200多个项目,但正如我所说,它只允许前12个左右。我将在下面发布我的代码片段 RootTableViewController.h #import <UIKit/UIKit.h> @interfa

我正在将我所有的数据添加到我的iPhone应用程序中,除了将数据硬编码到应用程序中之外,还进行了编码。我遇到了一个问题。我使用的是UITableView,每个表视图添加了大约150-250个项目,它允许我添加数据,但当我运行它时,它不允许我向下滚动大约12个项目。我希望能够滚动浏览我的所有200多个项目,但正如我所说,它只允许前12个左右。我将在下面发布我的代码片段

RootTableViewController.h

#import <UIKit/UIKit.h>

@interface RootTableViewController : UITableViewController

@end
#import <UIKit/UIKit.h>

@interface SecondTableViewController : UITableViewController

@property (nonatomic, strong) NSString *stateName;

@end
#import <UIKit/UIKit.h>

@interface ThirdTableViewController : UITableViewController

@property (nonatomic, strong) NSString *areaName;

@end
#import <UIKit/UIKit.h>

@interface FourthTableViewController : UITableViewController

@property (nonatomic, strong) NSString *climbName;

@end
SecondTableViewController.h

#import <UIKit/UIKit.h>

@interface RootTableViewController : UITableViewController

@end
#import <UIKit/UIKit.h>

@interface SecondTableViewController : UITableViewController

@property (nonatomic, strong) NSString *stateName;

@end
#import <UIKit/UIKit.h>

@interface ThirdTableViewController : UITableViewController

@property (nonatomic, strong) NSString *areaName;

@end
#import <UIKit/UIKit.h>

@interface FourthTableViewController : UITableViewController

@property (nonatomic, strong) NSString *climbName;

@end
ThirdTableViewController.h

#import <UIKit/UIKit.h>

@interface RootTableViewController : UITableViewController

@end
#import <UIKit/UIKit.h>

@interface SecondTableViewController : UITableViewController

@property (nonatomic, strong) NSString *stateName;

@end
#import <UIKit/UIKit.h>

@interface ThirdTableViewController : UITableViewController

@property (nonatomic, strong) NSString *areaName;

@end
#import <UIKit/UIKit.h>

@interface FourthTableViewController : UITableViewController

@property (nonatomic, strong) NSString *climbName;

@end
FourthViewController.h

#import <UIKit/UIKit.h>

@interface RootTableViewController : UITableViewController

@end
#import <UIKit/UIKit.h>

@interface SecondTableViewController : UITableViewController

@property (nonatomic, strong) NSString *stateName;

@end
#import <UIKit/UIKit.h>

@interface ThirdTableViewController : UITableViewController

@property (nonatomic, strong) NSString *areaName;

@end
#import <UIKit/UIKit.h>

@interface FourthTableViewController : UITableViewController

@property (nonatomic, strong) NSString *climbName;

@end
我想我需要像在Java应用程序中一样添加一个“可滚动部分”,但它已经是可滚动的了


谢谢

好的,我把正确的评论移到这里


当你到达桌子的末端时,你仍然可以把它向上伸展一点,对吗?这样做时,是否有任何单元格包含数据但隐藏在tableView框架之外?如果是,请检查
表格视图的框架

您使用什么数组/字典填充表格视图?如果在这种情况下使用
爬升
,您将只获得大约3项。请提供
tableView:cellforrowatinexpath
tableView:numberofrowsinssection
@Emil抱歉,刚才为该类添加了我的代码的剩余部分,它应该更好地显示我的问题self.areaName的内容是什么?取决于你的
self.areaName
是什么,tableView中只有14个或3个值。我刚刚添加了另外两个类,您可以在其中看到“self.areaName”的功能。