【发布时间】:2018-02-16 05:33:26
【问题描述】:
News feed 未显示在与 Newsfeed Viewcontroller 链接的 table viewcontroller.BuyerSocialPage 中具有 BuyerSocialPage.h 文件
@interface BuyerSocialPage : UIViewController <UITableViewDataSource,UITableViewDelegate>
@end
@implementation BuyerSocialPage
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.tableView.delegate=self;
UINib * firstNib = [UINib nibWithNibName:@"BSPFirstCell" bundle:nil];
[self.tableView registerNib:firstNib forCellReuseIdentifier:@"BSPFirstCell"];
UINib * secondNib = [UINib nibWithNibName:@"BSPSecondCell" bundle:nil];
[self.tableView registerNib:secondNib forCellReuseIdentifier:@"BSPSecondCell"];
UINib * thirdNib = [UINib nibWithNibName:@"BSPThirdCell" bundle:nil];
[self.tableView registerNib:thirdNib forCellReuseIdentifier:@"BSPThirdCell"];
UINib * fourthNib = [UINib nibWithNibName:@"BSPFourthCell" bundle:nil];
[self.tableView registerNib:fourthNib forCellReuseIdentifier:@"BSPFourthCell"];
self.view.backgroundColor = [UIColor whiteColor];
[self getBuyerSocialPage];
if (self.revealViewController) {
[_sidebarButton addTarget:self.revealViewController action:@selector(revealToggle:) forControlEvents:UIControlEventTouchUpInside];
[self.view addGestureRecognizer:self.revealViewController.panGestureRecognizer];
}
}
-(void)getBuyerSocialPage {
}
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
int row = (int)indexPath.row;
if (row == 0) {
return 324;
}
else if (row == 1)
{
return 152;
}
else if (row == 2)
{
return 152;
}
else
{
return 152;
}
}
@end
登录后,您将看到主屏幕。从顶部的侧面菜单栏中选择“新闻提要”,它应该显示新闻提要。但它没有显示新闻提要。Api 在邮递员上正确运行
如何在表格视图中获取新闻提要?
【问题讨论】:
-
请不要破坏您的帖子。通过在 Stack Exchange 网络上发布,您已授予 SE 分发该内容的不可撤销的权利(在 CC BY-SA 3.0 license 下)。根据 SE 政策,任何破坏行为都将被撤销。
标签: ios objective-c json uitableview