1

コーディングを開始したばかりで、Apple の記事「Your Second iOS App:Storyboard」に従っていると、次のコードから「互換性のないポインタ タイプが Birdsighting *__strong を NSString タイプの式で初期化しています *」という警告が表示されました。

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

1 に答える 1

0

あなたが言おうとしているのは(ITのように見える):

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


dataController に文字列が含まれていないことは確かです;)

于 2012-11-08T17:07:56.120 に答える