小编gsa*_*nza的帖子

UITableViewController中的断言失败

我正在参加iTunes U Stanford iOS Class,正在开展其中一项任务,以构建一个小小的Flickr应用程序.我收到一个错误,我似乎无法调试出现的错误

*断言失败 - [UITableView _configureCellForDisplay:forIndexPath:],/ SourceCache/UIKit_Sim/UIKit-2280.1/UITableView.m:5336 2012-08-03 10:59:24.596 Assignment 4 [4611:c07](null)libc ++ abi.dylib:终止调用抛出异常

我的tableviewcontroller的代码:

#import "PlacesPhotosTableViewController.h"

@interface PlacesPhotosTableViewController ()
@property (nonatomic) NSDictionary *placeToDisplay;
@property (nonatomic) NSArray *photosInPlace;
@end

@implementation PlacesPhotosTableViewController
@synthesize placeToDisplay = _placeToDisplay;
@synthesize photosInPlace = _photosInPlace;

- (id)initWithStyle:(UITableViewStyle)style
{
    self = [super initWithStyle:style];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (id)init
{
    self = [super init];

    return self;
}

- (id)initWithPlace:(NSDictionary *)place
{
    self = [self init];
    if (self) …
Run Code Online (Sandbox Code Playgroud)

flickr uitableview ios

27
推荐指数
1
解决办法
3万
查看次数

标签 统计

flickr ×1

ios ×1

uitableview ×1