腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(9999+)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
从
mainBundle
装载
let path = NSBundle.
mainBundle
().pathForResource(filename, ofType: "json") 为什么有人会选择第一种方法而不是第二种方法?
浏览 1
提问于2016-04-07
得票数 1
回答已采纳
2
回答
NSBundle
mainBundle
返回零
在寻找解决方案和测试时,我发现我从与nil有关的所有事情中获得了
mainBundle
。以下是我在测试中所声明的内容。我错过了什么/做错了什么?NSBundle *bundle = [NSBundle
mainBundle
];NSString *bundleName = [[NSBundle
mainBundle</
浏览 0
修改于2018-05-19
得票数 1
回答已采纳
1
回答
cellForRowAtIndexPath和NSBundle
mainBundle
的问题
Simulator"] || [[NSBundle
mainBundle
] loadNibNamed:@"NewsRow_ipad" owner:self options:nil]; ||
浏览 2
提问于2011-01-21
得票数 0
回答已采纳
2
回答
NSBundle
mainBundle
未找到
在我的MasterViewController中,代码:很管用。它知道NSBundle,但不知出于什么原因不认识
mainBundle
。
浏览 3
修改于2011-12-18
得票数 1
回答已采纳
1
回答
正在写入
mainBundle
plist
Root的类型是Dictionary,Pixar的类型是Array,有3个字符串电影标题,我可以用以下代码从列表中读取,没有问题 NSString *path = [[NSBundle
mainBundle
浏览 2
修改于2017-12-12
得票数 0
回答已采纳
1
回答
NSBundle.
mainBundle
()返回零
然后[NSBundle
mainBundle
]总是因为一些我不知道的原因而返回零。下面是调试窗格的屏幕截图:
浏览 4
修改于2016-03-09
得票数 1
回答已采纳
2
回答
NSBundle
mainBundle
infoDictionary返回NULL
不知道为什么[[NSBundle
mainBundle
] infoDictionary]返回nil...为什么会发生这种情况?
浏览 3
修改于2013-12-12
得票数 3
4
回答
[NSBundle
mainBundle
]pathForResource返回空
我调试了程序,发现[[NSBundle
mainBundle
] pathForResource]总是返回nil NSString* file = [[NSBundle
mainBundle
]pathForResource
浏览 1
修改于2012-06-19
得票数 0
1
回答
无法从
mainBundle
读取ePub文件
因此,我正在尝试读取一个简单的epub文件,它已经下载到我的XCode项目中,因此应该能够从我的
mainBundle
中读取,对吧?change the file extension [detailViewController loadEpub:[NSURL fileURLWithPath:[[NSBundle
mainBund
浏览 2
修改于2015-03-26
得票数 0
1
回答
'NSBundle
mainBundle
‘pathForResource奇怪的行为
我不知道pathForResource是如何工作的.或者更合适的是,没有。它们还在Target Membership中的File Inspector选项卡上被正确地勾选。有人知道为什么这种行为不一致吗?
浏览 1
提问于2017-02-26
得票数 0
回答已采纳
5
回答
使用[NSBundle
mainBundle
]写入文件失败
我在我的资源中添加了一个名为"4letter“的txt文件,下面是我的代码:NSString *dbFile = [[NSBundle
mainBundle
"\n"]; logFile = [NSFileHandle fileHandleForWritingAtPath:[[NSBundle
mainBundle
浏览 2
修改于2013-02-18
得票数 16
1
回答
NSBundle
mainBundle
给出了sigabrt错误?
相关问题--我认为这可能是我正在经历的真正问题:当我以某种方式设置rootview控制器时,行[[NSBundle
mainBundle
] loadNibNamed:@"dequeueReusableCellWithIdentifier:CellIdentifier]; NSArray * topLevelObjects = [[NSBundle
mainBundle
UIStoryboard * storyboard = [UIStoryboard s
浏览 4
修改于2017-05-23
得票数 0
7
回答
NSBundle.
mainBundle
().pathForResource返回零
class File2{ let type: String let bundle = NSBundle.
mainBundle
()
浏览 0
提问于2015-07-06
得票数 36
回答已采纳
1
回答
"[[NSBundle
mainBundle
] objectForInfoDictionaryKey:]“有时返回空
当这种奇怪的行为发生时,[NSBundle
mainBundle
]和[[NSBundle
mainBundle
] infoDictionary]都不是空的。只有URLs返回nil。
浏览 1
修改于2014-05-12
得票数 2
1
回答
在调用[[NSBundle
mainBundle
] bundlePath]时是否存在生成相同字符串的
mainBundle
等效?
当我使用NSBundle时:path1持有 @"/Users/username/Library
浏览 0
提问于2013-11-12
得票数 0
回答已采纳
1
回答
无法获得
mainBundle
资源(返回null)
我读到过我应该用这样的东西:NSString *filePath = [[
mainBundle
resourcePath使用NSLog,我可以确认
mainBundle
不是null,resourcePath返回如下内容:/Users/tom/Library/Developer/CoreSimulator/Devices/XXXXXXXX-XXXX-XXXX-XXX
浏览 4
修改于2022-06-28
得票数 0
1
回答
[[NSBundle
mainBundle
] loadNibnamed:owner:options:]崩溃
dequeueReusableCellWithIdentifier:CellIdentifier]; NSArray *topLevelObjects = [[NSBundle
mainBundle
浏览 4
提问于2011-03-29
得票数 16
回答已采纳
2
回答
使用[[NSBundle
mainBundle
] resourcePath]中的路径
我知道我可以通过使用以下命令获得AppBundle的路径: 我不确定的是如何获得"MainFolder
浏览 129
提问于2009-12-23
得票数 17
回答已采纳
2
回答
cocoapods:资源没有复制到
mainBundle
{h,m}' end 非常奇怪的是,在我测试吊舱的玩具项目中,它可以工作(我可以检查nib在
mainBundle
中),但是在我的实际项目中,nib不在
mainBundle
中
浏览 1
修改于2014-06-04
得票数 3
回答已采纳
2
回答
mainBundle
上的appStoreReceiptURL始终返回nil
每个人都说用这个调用来代替:如果有收据的话,这会返回一个url给收据。
浏览 1
提问于2013-11-17
得票数 6
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券