它已经过了1周,我仍然停留在PFImageView上.我重新制作了一切.从UITableView更改为PFQueryTableView,然后尝试使用UITableViewCell显示图像,然后使用PFTableViewCell,并且在每种方法中,只有用于显示的内容才是标签.每当我运行我的应用程序时,我都会因为这行而崩溃(SIGABRT):`
崩溃线
Run Code Online (Sandbox Code Playgroud)cell.imagevieww.file= [object objectForKey:@"ImageURL"]; [cell.imagevieww loadInBackground];
任何人都可以帮我解决这个问题吗?非常感谢
TableViewController.h
Run Code Online (Sandbox Code Playgroud)#import <Parse/Parse.h> #import "Customcell.h" #import "DetailViewController.h" @interface TableeViewController : PFQueryTableViewController { NSArray *colorsArray; } @property (strong, nonatomic) IBOutlet UITableView *colorsTable; @end
TableViewController.m
#import "TableeViewController.h"
#import "TableViewCell.h"
#import "DetailViewController.h"
@interface TableeViewController ()
@end
@implementation TableeViewController
@synthesize colorsTable;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (id)initWithCoder:(NSCoder *)aCoder
{
self = [super initWithCoder:aCoder];
if (self) {
// The className …Run Code Online (Sandbox Code Playgroud)