E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
OfType
AF3.0、WKWebView、SDWebImage适配HTTPS
)customSecurityPolicy{///先导入证书NSString*cerPath=[[NSBundlemainBundle]pathForResource:@"aichewang.cer"
ofType
只非鱼
·
2020-03-07 02:46
json文件转换plist文件
NSString*path=[[NSBundlemainBundle]pathForResource:@"city_province.json"
ofType
:nil];NSLog(@"path=%@",
果然小行家
·
2020-03-05 06:44
iOS【UIImage】@2x @3x
的加载有两种方法[UIImageimageNamed:@"smallcat"];NSString*path=[[NSBundlemainBundle]pathForResource:@"smallcat"
ofType
iCuiCui
·
2020-03-05 03:48
iOS小结
上传图片图片发自Appgif图片的显示NSString*filePath=[[NSBundlemainBundle]pathForResource:@"railway"
ofType
:@"gif"];NSData
且行且珍惜_iOS
·
2020-03-05 02:54
Swift 图像转换为Base64字符串
//本地路径文件letfilePath=NSBundle.mainBundle().pathForResource("test",
ofType
:"jpg")letdata=NSData(contentsOfFile
小黑Swift
·
2020-03-04 13:48
读取json文件
读取json文件NSString*path=[[NSBundlemainBundle]pathForResource:@"area"
ofType
:@"json"];NSData*data=[NSDatadataWithContentsOfFile
fallrainy
·
2020-03-03 04:59
JSPatch原理解析(一)
JSPatch有关的是这几句代码[JPEnginestartEngine];NSString*sourcePath=[[NSBundlemainBundle]pathForResource:@"demo"
ofType
Cc极生
·
2020-03-03 04:19
ios开发txt文件转plist文件
NSString*plistPath=[[NSBundlemainBundle]pathForResource:@"zujin"
ofType
:@"txt"];//gbk编码如果txt文件为utf-8的则使用
seventhboy
·
2020-03-02 02:26
iOS播放GIF动画的几种方式
UIWebView播放#pragmaclangdiagnosticignored"-Wnonnull"NSString*path=[[NSBundlemainBundle]pathForResource:@""
ofType
Tate_zwt
·
2020-03-01 13:08
本地造假数据模拟服务器给的json
读取.json文件代码部分NSString*json=[[NSBundlemainBundle]pathForResource:@"data"
ofType
:@"json"];NSData*data=[NSDatadataWithContentsOfFile
动感超人丶
·
2020-03-01 04:48
UIImageView的集中初始化方法
imageWithContentsOfFile:初始化UIImage*image=[UIImageimageWithContentsOfFile:[[NSBundlemainBundle]pathForResource:@"1.png"
ofType
CoderMrGuo
·
2020-02-29 20:33
仿keep思路
创建一个视频播放器,播放准备好的视频NSString*url=[[NSBundlemainBundle]pathForResource:@"1"
ofType
:@"mp4"];self.mp4Item=[
JanuaryMei
·
2020-02-29 11:03
plist文件追加数据
rchd.plist内容进行操作..想在plist文件里面追加一条数据.我现在的代码如下:NSString*path=[[NSBundlemainBundle]pathForResource:@"rchd"
ofType
H_A_N
·
2020-02-28 15:27
MPMoviePlayerController播放视频
NSString*file=[[NSBundlemainBundle]pathForResource:@"test_movie"
ofType
:@"mp4"];NSURL*url=[NSURLfileURLWithPath
Ming普
·
2020-02-27 09:40
播放系统声音
播放系统声音SystemSoundIDmysound;NSString*sndpath=[[NSBundlemainBundle]pathForResource:@"basicsound"
ofType
:
winnisz
·
2020-02-26 09:55
ios 本地json,plist,bundle 文件的使用
再转为我们常用的dicNSData*JSONData=[NSDatadataWithContentsOfFile:[[NSBundlemainBundle]pathForResource:@"xd_square"
ofType
一只不会飞的小艳子
·
2020-02-26 05:45
iOS 使用FMDB对本地的.db数据进行查询
authorfangbmian,16-03-1810:03:50**获取本地品牌数据*/NSString*dbFilePath=[[NSBundlemainBundle]pathForResource:@"name"
ofType
这样的我321
·
2020-02-25 23:29
新建plist文件
可以创建完成后再改名为测试.plist文件内为一个字典,可以在字典里面添加key和value存储需要用到的时候NSString*path=[[NSBundlemainBundle]pathForResource:@"测试"
ofType
给你快乐
·
2020-02-25 02:50
解析字符串遇到的问题
NSString*path=[[NSBundlemainBundle]pathForResource:@"LBChatDemo"
ofType
:@"json"];NSData*data=[NSDatadata
Johnny_Chang
·
2020-02-24 20:07
字典转模型
加载一个字典数组NSArray*dictArray=[NSArrayarrayWithContentsOfFile:[[NSBundlemainBundle]pathForResource:@"shops"
ofType
张璠
·
2020-02-24 11:37
UI-plist、懒加载、封装、模型
文件中的数据获得Plist文件的全路径NSBundle*bundle=[NSBundlemainBundle];NSString*path=[bundlepathForResource:@"shops"
ofType
居敬持志
·
2020-02-24 04:27
NSBundle mainBundle] pathForResource 获取不到bundle文件
问题 再利用以下代码获取视频文件路径的时候返回路径为nilNSString*noteVideoPath=[[NSBundlemainBundle]pathForResource:@"video"
ofType
ClementGu
·
2020-02-22 15:07
Plist文件
初始化图片数组self.array=[NSMutableArrayarray];//请求数据NSString*path=[[NSBundlemainBundle]pathForResource:@"0"
ofType
法库德
·
2020-02-21 16:46
[NSBundle mainBundle] pathForResource:
ofType
: 获取不到数据
从bundle中获取数据,明明把数据添加到项目中了,但就是不对。打印出来的都是空//原始数据NSString*originalString=@"这是一段将要使用'.der'文件加密的字符串!";//使用.der和.p12中的公钥私钥加密解密NSString*public_key_path=[[NSBundlemainBundle]pathForResource:@"public_key.der"o
小子难缠
·
2020-02-20 15:21
iOS NSBundle的pathForResource返回nil
有时候想取工程中的文件路径,比如图片,用NSBundle的pathForResource:
ofType
:返回却是nil屏幕快照2017-09-2518.32.46.png[[NSBundlemainBundle
晨寂
·
2020-02-20 06:34
iOS文件预览的几种方式
一、UIDocumentInteractionController//本地文件的绝对路径NSString*path=[[NSBundlemainBundle]pathForResource:@"测试"
ofType
SL_iOS
·
2020-02-20 04:34
iOS 播放本地 gif
UIWebView播放NSData*gifData=[NSDatadataWithContentsOfFile:[[NSBundlemainBundle]pathForResource:@"IMG_2073"
ofType
Heikki_
·
2020-02-18 21:04
文件存储
BundleContainerApp内找文件->Bundle->文件名->对应文件对应代码:[[NSBundlemainBundle]pathForReasource:@"name"
ofType
:@"type
陈_振
·
2020-02-18 05:44
从本地加载webView不显示图片的问题
我就想当然的写上NSData*data=[NSDatadataWithContentsOfFile:[[NSBundlemainBundle]pathForResource:@"manual_activity"
ofType
14号孤独患者
·
2020-02-15 21:58
iOS 播放系统提示音和使用系统方法播放本地提示音
1007是系统声音的编号,想用其他音效更改编号就可以了2、用户自己制作的提示音//文件路径NSString*path=[[NSBundlemainBundle]pathForResource:@"send"
ofType
FisherJiam
·
2020-02-15 12:01
iOS 利用AVAudioPlayer写一个简易的音乐播放器
利用AVFoundation库中的AVAudioPlayer类实现简单的音乐播放:核心代码:NSString*path=[[NSBundlemainBundle]pathForResource:@"3"
ofType
Cary9396
·
2020-02-15 07:20
iOS 获取plist文件中的数据
ofType
:@"plist"];NSArray*arr=[NSArrayarrayWithContentsOfFile:path];mArr=[NSMutableArrayarray];for(NSDictionary
谁说_
·
2020-02-15 01:12
iOS加载本地视频播放获取视频路径出错
获取视频路径:NSString*urlStr=[[NSBundlemainBundle]pathForResource:@"1.mp4"
ofType
:nil];NSLog(@"----%@",url
47号同学
·
2020-02-14 23:56
curl error:14077410
新MacBookPro,安装的mamp,本地项目可以正常访问,但是通过curl请求却出现如下问题**curl_errno($ch)**输出:resource(67)
oftype
(curl)于是**var_dump
拿破仑蛋糕
·
2020-02-14 23:39
[NSBundle MainBundle] pathForResources 拿不到 Assets.xcassets里面图片的路径 ( BUG方式解决)
项目中,把一张gif图放在Assets.xcassets,使用时一直是这样的:NSString*path=[[NSBundlemainBundle]pathForResource:@"下滑动画"
ofType
Cz1024
·
2020-02-13 16:19
IOS JSON数据解析
获取文件中的json数据//JsonData是文件名//json是文件后缀民NSString*path=[[NSBundlemainBundle]pathForResource:@"JsonData"
ofType
少爷1103
·
2020-02-13 05:03
iOS - Gif图片本地播放
importImageIO关于Gif播放了解更多第一步:加载资源并转化成Data//1.加载图片并且转换成data类型guardletpath=Bundle.main.path(forResource:"demo.gif",
ofType
黄晓坚
·
2020-02-12 23:22
iOS学习笔记3
文件先获取文件路径在将Plist文件传入数组或者字典中//获取file在不同机器的文件全部路径NSString*file=[[NSBundlemainBundle]pathForResource:@"文件名"
ofType
蠢萌的L君
·
2020-02-12 14:13
爱限免项目第一天知识点回顾
在用数组通过文件地址获取对象的类方法创建了一个数组,该数组中则保存了保存了多个字典对象NSString*plistPath=[[NSBundlemainBundle]pathForResource:@"controllers"
ofType
信徒_lh
·
2020-02-12 13:59
总结:记不住的代码9.7
vartempArray=[NSDictionary]()//1.获取plist文件的路径letpath=NSBundle.mainBundle().pathForResource("data2.plist",
ofType
写啥呢
·
2020-02-11 02:39
[NSBundle mainBundle] pathForResource:
ofType
: 获取不到数据
[NSBundlemainBundle]pathForResource:
ofType
:获取不到数据从bundle中获取数据,明明把数据添加到项目中了,但就是不对。
加基特
·
2020-02-09 12:40
iOS SDWebImage 加载GIF图片没效果
NSString*filepath=[[NSBundlebundleWithPath:[[NSBundlemainBundle]bundlePath]]pathForResource:@"abc.gif"
ofType
iOS开发小学生
·
2020-02-09 05:49
GIF图片的播放和生成
首先需要导入头文件#import#importGIF图片的播放NSString*gifpath=[[NSBundlemainBundle]pathForResource:@"1.gif"
ofType
:nil
zhouios
·
2020-02-08 21:57
引导页
判断版本号//创始字符串NSString*path=[[NSBundlemainBundle]pathForResource:@"Info.plist"
ofType
:nil];//创建字典NSDictionary
哎呀我去i
·
2020-02-07 15:49
重拾Swift 第二天 项目的几个坑
NSJSONSerialization.JSONObjectWithDataasdocatch命名空间privatefuncgetJsonData(){letpath=NSBundle.mainBundle().pathForResource("MainVCSettings.json",
ofType
QJK
·
2020-02-07 13:25
iOS SDWebImage 4.0播放GIF的问题
的加载本地NSString*filepath=[[NSBundlebundleWithPath:[[NSBundlemainBundle]bundlePath]]pathForResource:@"测试"
ofType
i_MT
·
2020-02-05 18:32
Mybatis高级-resultMap之collection聚集
需要指定映射的Java实体类的属性,属性的javaType(一般为ArrayList);列表中对象的类型
ofType
(Java实体类);对应的数据库表的列名称;额,估计这样说大家听不懂,简单的意思就是把两张表联系起来
liuer338
·
2020-01-11 14:19
mybatis
collection
java
iOS/OC:ATS、https、自签证书、域名
先上AFN代码:NSString*cerPath=[[NSBundlemainBundle]pathForResource:@“你的证书名称”
ofType
:@"cer"];NSData*cerData=
妈妈_这个世界会好吗
·
2020-01-08 07:30
Swift开发---UIWebView&UIWKWebView,HTML内容的直接加载,HTML文件的内容读取
文件层级关系:image.png1、从文件中读取HTML内容ifletfilePath=Bundle.main.path(forResource:"/JJA/demo",
ofType
:"html"){letcontents
闲云悠鹤蝶恋舞
·
2020-01-04 05:10
swift3 Bundle.main.path获取本地文件路径失败
使用swift的Bundle来获取项目的文件路径,代码如下:guardletjsonPath=Bundle.main.path(forResource:"MainVCSettings.json",
ofType
红姑娘
·
2020-01-04 00:48
上一页
5
6
7
8
9
10
11
12
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他