BirdWatching app'不兼容的指针类型初始化'

时间:2012-11-08 17:05:21

标签: initialization incompatibility

我刚刚开始编码,当我按照Apple的文章'Your Second iOS App:Storyboard'时,我收到一条警告,说明'不兼容的指针类型初始化Birdsighting * __ strong,表达式为NSString *',代码如下:

detailViewController.sighting = [self.dataController objectInListAtIndex:[self.tableView indexPathForSelectedRow].row];

1 个答案:

答案 0 :(得分:0)

你正试图说(IT SEEMS):

NSString * stringInCurrentTableViewRow = [self.dataController objectInListAtIndex:[self.tableView indexPathForSelectedRow] .row];    BirdSighting * yourObject = stringInCurrentTableViewRow;


你确定dataController不包含字符串;)