【问题标题】:Returning null for string为字符串返回 null
【发布时间】:2012-10-09 22:34:47
【问题描述】:

以下语句返回 null。

有人可以帮忙吗?

NSString *movpath = [[NSBundle mainBundle] pathForResource:@"Movie" ofType:@"m4v"];

谢谢

【问题讨论】:

    标签: iphone ios ios5 ios4 ios6


    【解决方案1】:

    这主要是因为 Movie.m4v 不正确,您需要在构建阶段将其添加到资源中。

    【讨论】:

      猜你喜欢
      • 2015-02-12
      • 1970-01-01
      • 1970-01-01
      • 2013-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-24
      • 1970-01-01
      相关资源
      最近更新 更多