OC转Swift,桥接头文件
没有桥接头文件,新建OC文件也没有头文件的解决方法:
自己新建一个.h头文件,但是一个项目可能有很多的.h文件,怎么知道那个是桥接头文件?
我们在下面的位置设置


设置好路径就可以使用创建的桥接头文件了。
如果是文件,用#import "xxx.h"
如果是frameWork的用 #import < xxx / xxx.h >
HTTP 方法
1.URL (长度有限,看服务器限制,一般几k)
2.Request Header
3.Body(长度没有限制)
GET: URL/Header 不支持Body
POST/PUT: URL / Header / Body / 用来放数据
Firefox: HttpResponse 测试工具

我们把信息POST上去,一定要写服务器里有的类型
cityName=长沙市&loc=113,28&type=钓鱼

网友评论