http://pt-br.tinypic.com/view.php?pic=300rxip&s=8#.VDhDStTF8mc爲什麼選擇我收到「終止應用程序由於未捕獲的異常‘NSInvalidArgumentException’,原因是:「 - [UIImageView的_isResizable]:無法識別選擇」
我的UIImageView連接到TableViewCell,你可以在上面看到(我的聲譽太低而無法發佈圖片,所以我不得不將其上傳到tinypic)。
此圖片的單元代碼是在這裏:
#import <UIKit/UIKit.h>
@interface ExtratoDeNotasSideMenuTableViewCell : UITableViewCell
@property (strong, nonatomic) IBOutlet UIImageView *image;
@property (strong, nonatomic) IBOutlet UILabel *label;
@end
之後,我指定接收其圖像:
- (ExtratoDeNotasSideMenuTableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
ExtratoDeNotasSideMenuTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ExtratoDeNotasSideMenuTableViewCell" forIndexPath:indexPath];
// Configure the cell...
cell.image.image = [UIImage imageNamed:@"Icone_SideBar.png"];
cell.label.text = [NSString stringWithFormat:@"%@", [self.menuItens objectAtIndex:indexPath.row]];
return cell;
}
但它不工作,郵件: 「** *由於未捕獲異常'NSInvalidArgumentException',原因:' - [UIImageView _isResizable]:發送到實例0x7fa81356da40'「的無法識別的選擇器不斷顯示,終止應用程序。 任何幫助將不勝感激。
您的單元格如何連接到屬性? – Tuan 2014-10-10 20:57:54