开发者

Expecting identifier before object string :(

开发者 https://www.devze.com 2022-12-18 09:09 出处:网络
I\'m trying to format this li开发者_Python百科ne correctly but so far, I\'m getting no where: NSString *urlAddress = selectedCell.@\"html\";

I'm trying to format this li开发者_Python百科ne correctly but so far, I'm getting no where:

NSString *urlAddress = selectedCell.@"html";

selectedCell is the category chosen,

IBOutlet UILabel *selectedCellText;
NSString *selectedCell;

How do I sort this out?


Fixed it,

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

精彩评论

暂无评论...
验证码 换一张
取 消