2013-10-17 87 views
1

我使用Parse.com,我有一個視圖控制器具有的TableView內...未知類PFImageView文件

TableView中的細胞是個性化和包含PFImageView類的ImageView的內部。

當我運行它的所有作品,經常給我的照片,但Xcode的5顯示了我在Interface Builder文件此錯誤消息

PFImageView未知的類。

我怎麼得到這個錯誤?我在哪裏做錯了

下面我在表格視圖中顯示PFImageView的實現。

P.S. PFImageView和「也被添加到CustomTableViewCell.h

-(FFCellFindUser *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 

    static NSString *CellIdentifier = @"CellFindUser"; 
    FFCellFindUser *cell = [self.FFTableViewFindUser dequeueReusableCellWithIdentifier:CellIdentifier]; 
    if (!cell) { 
     cell = [[FFCellFindUser alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; 
    } 

    PFObject *TempObject = [self.FFTotalUser objectAtIndex:indexPath.row]; 
    cell.FFLabelCell_NomeCognome.text = [TempObject objectForKey:FF_USER_NOMECOGNOME]; 


    PFFile *imageFile = [TempObject objectForKey:FF_USER_FOTOPROFILO]; 
    [imageFile getDataInBackgroundWithBlock:^(NSData *data, NSError *error) { 
     cell.FFIMGCell_FotoProfilo.image =[UIImage imageWithData:data]; }]; 

    return cell; 
} 
+0

刪除 「如果{ 細胞= [[FFCellFindUser的alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; }(小區!)」,並告訴我們從工作就像一個魅力的細胞原型 –

回答

2

看來,改在PFTableViewCell自定義的UITableViewCell細胞類已經解決了這個問題......就這樣,編譯器已經認識到PFImageView。

+0

的IB的屏幕。 – RyanG

+0

你能解釋一下嗎?我的表格單元格已經是PFTableViewCell類型,我仍然得到未知的類PFImageView –