次のように表示されます。
[[NSBundle mainBundle] pathForResource:@"name" ofType:@"png"];
Images.xcassets アセット カタログ内にあるアセットについては何も返しません。私も試しました:
[[NSBundle mainBundle] pathForResource:@"name" ofType:@"png" inDirectory:@"Images"];
[[NSBundle mainBundle] pathForResource:@"name" ofType:@"png" inDirectory:@"Images.xcassets"];
しかし、どちらも機能しませんでした。
カタログ内のアセットへのパスの取得に成功した人はいますか?