代码之家  ›  专栏  ›  技术社区  ›  bear

在对象字符串之前需要标识符:(

  •  0
  • bear  · 技术社区  · 15 年前

    我正试着正确地格式化这一行,但到目前为止,我还没有找到:

    NSString *urlAddress = selectedCell.@"html";
    

    selectedcell是所选的类别,

    IBOutlet UILabel *selectedCellText;
    NSString *selectedCell;
    

    我该怎么解决?

    1 回复  |  直到 15 年前
        1
  •  0
  •   bear    15 年前

    修理它,

    NSString *urlAddress = [[NSBundle mainBundle] pathForResource:selectedCell ofType:@"htm"];